org.glassfish.grizzly.util
Class CurrentThreadExecutor
java.lang.Object
org.glassfish.grizzly.util.CurrentThreadExecutor
- All Implemented Interfaces:
- Executor, ProcessorExecutor
public class CurrentThreadExecutor
- extends Object
- implements ProcessorExecutor
Simple Executor, which executes a tasks in a current Thread
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentThreadExecutor
public CurrentThreadExecutor()
execute
public void execute(Runnable command)
- 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.