org.glassfish.grizzly.util
Class CurrentThreadExecutor

java.lang.Object
  extended by 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

Constructor Summary
CurrentThreadExecutor()
           
 
Method Summary
 void execute(Runnable command)
           
 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

CurrentThreadExecutor

public CurrentThreadExecutor()
Method Detail

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.