public abstract class EventHandlerBase extends Object implements EventHandler
| Modifier and Type | Field and Description |
|---|---|
protected ORB |
orb |
protected SelectionKey |
selectionKey |
protected boolean |
useSelectThreadToWait |
protected boolean |
useWorkerThreadForEvent |
protected Work |
work |
| Constructor and Description |
|---|
EventHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
SelectionKey |
getSelectionKey() |
Work |
getWork() |
void |
handleEvent() |
void |
setSelectionKey(SelectionKey selectionKey) |
void |
setUseSelectThreadToWait(boolean x) |
void |
setUseWorkerThreadForEvent(boolean x) |
void |
setWork(Work work) |
boolean |
shouldUseSelectThreadToWait() |
boolean |
shouldUseWorkerThreadForEvent() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptor, getChannel, getConnection, getInterestOpsprotected ORB orb
protected Work work
protected boolean useWorkerThreadForEvent
protected boolean useSelectThreadToWait
protected SelectionKey selectionKey
public void setUseSelectThreadToWait(boolean x)
setUseSelectThreadToWait in interface EventHandlerpublic boolean shouldUseSelectThreadToWait()
shouldUseSelectThreadToWait in interface EventHandlerpublic void setSelectionKey(SelectionKey selectionKey)
setSelectionKey in interface EventHandlerpublic SelectionKey getSelectionKey()
getSelectionKey in interface EventHandlerpublic void handleEvent()
handleEvent in interface EventHandlerpublic boolean shouldUseWorkerThreadForEvent()
shouldUseWorkerThreadForEvent in interface EventHandlerpublic void setUseWorkerThreadForEvent(boolean x)
setUseWorkerThreadForEvent in interface EventHandlerpublic void setWork(Work work)
setWork in interface EventHandlerpublic Work getWork()
getWork in interface EventHandlerCopyright © 2018 JBoss by Red Hat. All rights reserved.