Package org.epics.ca.impl.reactor.lf
Class LeaderFollowersThreadPool
- java.lang.Object
-
- org.epics.ca.impl.reactor.lf.LeaderFollowersThreadPool
-
public class LeaderFollowersThreadPool extends java.lang.ObjectLF thread pool implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_THREADPOOL_SIZEDefault thread pool size.
-
Constructor Summary
Constructors Constructor Description LeaderFollowersThreadPool()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.Runnable task)Execute given task.voidpromoteLeader(java.lang.Runnable task)Promote a new leader.voidshutdown()Shutdown.
-
-
-
Field Detail
-
DEFAULT_THREADPOOL_SIZE
public static final int DEFAULT_THREADPOOL_SIZE
Default thread pool size.- See Also:
- Constant Field Values
-
-
Method Detail
-
promoteLeader
public void promoteLeader(java.lang.Runnable task)
Promote a new leader.- Parameters:
task- task to execute by a new leader.
-
execute
public void execute(java.lang.Runnable task)
Execute given task.- Parameters:
task- task to execute.
-
shutdown
public void shutdown()
Shutdown.
-
-