public boolean runNext ( ) { if ( ! hasQueuedTasks ( ) ) { return false ; } if ( Thread . currentThread ( ) . equals ( executorThread ) ) { Logger . info ( "ignoring request to execute task - called from executor's own thread" ) ; return false ; } Runnable task = deferredTasks . poll ( ) ; task . run ( ) ; return true ; }
Executes the next queued task .