com.sun.grizzly.utils
Class WorkerThreadExecutor

java.lang.Object
  extended by com.sun.grizzly.utils.WorkerThreadExecutor
All Implemented Interfaces:
ProcessorExecutor, Executor

public class WorkerThreadExecutor
extends Object
implements ProcessorExecutor

WorkerThreadExecutor implementation, which executes Runnable in one of the ThreadPool's worker thread

Author:
Alexey Stashok

Constructor Summary
WorkerThreadExecutor(Transport transport)
           
 
Method Summary
 void execute(Runnable task)
           
 boolean isCurrentThreadExecutor()
          Returns true if ProcessorExecutor uses current Thread to run I/O event processing, or false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerThreadExecutor

public WorkerThreadExecutor(Transport transport)
Method Detail

execute

public void execute(Runnable task)
Specified by:
execute in interface Executor

isCurrentThreadExecutor

public boolean isCurrentThreadExecutor()
Description copied from interface: ProcessorExecutor
Returns true if ProcessorExecutor uses current Thread to run I/O event processing, or false otherwise.

Specified by:
isCurrentThreadExecutor in interface ProcessorExecutor
Returns:
true if ProcessorExecutor uses current Thread to run I/O event processing, or false otherwise.


Copyright © 2009 SUN Microsystems. All Rights Reserved.