org.planx.xmlstore.util
Class Concurrency

java.lang.Object
  extended by org.planx.xmlstore.util.Concurrency

public class Concurrency
extends Object

Author:
Thomas Ambus

Method Summary
static
<V> Future<V>
future(V elm)
          Returns an already completed Future merely wrapping a value.
static ExecutorService localExecutor()
          Returns a shared ExecutorService for local XMLStore clients.
static ExecutorService networkExecutor()
          Returns a shared ExecutorService for remote XMLStore clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

localExecutor

public static ExecutorService localExecutor()
Returns a shared ExecutorService for local XMLStore clients.


networkExecutor

public static ExecutorService networkExecutor()
Returns a shared ExecutorService for remote XMLStore clients.


future

public static <V> Future<V> future(V elm)
Returns an already completed Future merely wrapping a value.



Copyright © 2010. All Rights Reserved.