public void execute ( final T runnable ) { synchronized ( queue ) { if ( runnable != null && ! disabled ) { queue . addLast ( runnable ) ; queue . notify ( ) ; System . out . println ( "WorkQueue has added runable - WorkQueue size is " + queue . size ( ) ) ; } } }
Add a Runnable object to the pool to be executed once a thread is available