com.bbn.openmap.util
Class TaskService

java.lang.Object
  extended by com.bbn.openmap.util.TaskService

public final class TaskService
extends java.lang.Object

Reuse threads instead of making new ones over and over.


Method Summary
static TaskService singleton()
           
<T> java.util.concurrent.Future<T>
spawn(java.util.concurrent.Callable<T> task)
           
 void spawn(java.lang.Runnable task)
          Run a task in a thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleton

public static TaskService singleton()

spawn

public void spawn(java.lang.Runnable task)
Run a task in a thread.


spawn

public <T> java.util.concurrent.Future<T> spawn(java.util.concurrent.Callable<T> task)


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details