return threadPriority;
}
public int getQueueSize() {
if (executor != null) {
return executor.getQueue().size();
return 0;
public boolean isDaemon() {
return daemon;