org.glassfish.grizzly.util
Class WorkerThreadExecutor
java.lang.Object
org.glassfish.grizzly.util.WorkerThreadExecutor
- All Implemented Interfaces:
- Executor, ProcessorExecutor
public class WorkerThreadExecutor
- extends Object
- implements ProcessorExecutor
WorkerThreadExecutor implementation, which executes Runnable in
one of the ThreadPool's worker thread
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkerThreadExecutor
public WorkerThreadExecutor(Transport transport)
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.