org.jboss.remoting.util
Class OrderedExecutorFactory

java.lang.Object
  extended by org.jboss.remoting.util.OrderedExecutorFactory

public final class OrderedExecutorFactory
extends Object

A factory for producing executors that run all tasks in order, which delegate to a single common executor instance.


Constructor Summary
OrderedExecutorFactory(Executor parent)
          Construct a new instance delegating to the given parent executor.
 
Method Summary
 Executor getOrderedExecutor()
          Get an executor that always executes tasks in order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedExecutorFactory

public OrderedExecutorFactory(Executor parent)
Construct a new instance delegating to the given parent executor.

Parameters:
parent - the parent executor
Method Detail

getOrderedExecutor

public Executor getOrderedExecutor()
Get an executor that always executes tasks in order.

Returns:
an ordered executor


Copyright © 2008 JBoss, a division of Red Hat, Inc.