org.jboss.messaging.utils
Class OrderedExecutorFactory

java.lang.Object
  extended by org.jboss.messaging.utils.OrderedExecutorFactory
All Implemented Interfaces:
ExecutorFactory

public final class OrderedExecutorFactory
extends java.lang.Object
implements ExecutorFactory

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

Version:
$Revision$
Author:
David Lloyd, Tim Fox

Constructor Summary
OrderedExecutorFactory(java.util.concurrent.Executor parent)
          Construct a new instance delegating to the given parent executor.
 
Method Summary
 java.util.concurrent.Executor getExecutor()
          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(java.util.concurrent.Executor parent)
Construct a new instance delegating to the given parent executor.

Parameters:
parent - the parent executor
Method Detail

getExecutor

public java.util.concurrent.Executor getExecutor()
Get an executor that always executes tasks in order.

Specified by:
getExecutor in interface ExecutorFactory
Returns:
an ordered executor


Copyright © 2006 JBoss Inc. All Rights Reserved.