com.cosylab.epics.caj.impl.reactor.lf
Class LeaderFollowersThreadPool

java.lang.Object
  extended by com.cosylab.epics.caj.impl.reactor.lf.LeaderFollowersThreadPool

public class LeaderFollowersThreadPool
extends Object

Version:
$id$
Author:
Matej Sekoranja

Field Summary
static int DEFAULT_THREADPOOL_SIZE
          Default thread pool size.
 
Constructor Summary
LeaderFollowersThreadPool()
          Constructor.
 
Method Summary
 void execute(Runnable task)
          Execute given task.
 void promoteLeader(Runnable task)
          Promote a new leader.
 void shutdown()
          Shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_THREADPOOL_SIZE

public static final int DEFAULT_THREADPOOL_SIZE
Default thread pool size.

See Also:
Constant Field Values
Constructor Detail

LeaderFollowersThreadPool

public LeaderFollowersThreadPool()
Constructor.

Method Detail

promoteLeader

public void promoteLeader(Runnable task)
Promote a new leader.

Parameters:
task - task to execute by a new leader.

execute

public void execute(Runnable task)
Execute given task.

Parameters:
task - task to execute.

shutdown

public void shutdown()
Shutdown.



Copyright © 2004-2013 Cosylab. All Rights Reserved.