public class LeaderFollowersHandler extends Object implements ReactorHandler, Runnable
| Modifier and Type | Field and Description |
|---|---|
protected ReactorHandler |
handler
Application-specific event processing handler.
|
protected Reactor |
reactor
Reactor to serve.
|
protected LeaderFollowersThreadPool |
threadPool
Leader-followers thread pool.
|
| Constructor and Description |
|---|
LeaderFollowersHandler(Reactor reactor,
ReactorHandler handler,
LeaderFollowersThreadPool threadPool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(SelectionKey key)
Process request of given
SelectionKey. |
void |
run() |
protected Reactor reactor
protected ReactorHandler handler
protected LeaderFollowersThreadPool threadPool
public LeaderFollowersHandler(Reactor reactor, ReactorHandler handler, LeaderFollowersThreadPool threadPool)
reactor - reactor to handle.handler - application-specific event processing handler.threadPool - leader-followers thread pool.public void handleEvent(SelectionKey key)
ReactorHandlerSelectionKey.handleEvent in interface ReactorHandlerkey - key to be processed.ReactorHandler.handleEvent(java.nio.channels.SelectionKey)public void run()
run in interface RunnableRunnable.run()Copyright © 2004-2020 EPICS. All Rights Reserved.