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, wait
getAcceptor, getChannel, getConnection, getInterestOps
protected ORB orb
protected Work work
protected boolean useWorkerThreadForEvent
protected boolean useSelectThreadToWait
protected SelectionKey selectionKey
public void setUseSelectThreadToWait(boolean x)
setUseSelectThreadToWait
in interface EventHandler
public boolean shouldUseSelectThreadToWait()
shouldUseSelectThreadToWait
in interface EventHandler
public void setSelectionKey(SelectionKey selectionKey)
setSelectionKey
in interface EventHandler
public SelectionKey getSelectionKey()
getSelectionKey
in interface EventHandler
public void handleEvent()
handleEvent
in interface EventHandler
public boolean shouldUseWorkerThreadForEvent()
shouldUseWorkerThreadForEvent
in interface EventHandler
public void setUseWorkerThreadForEvent(boolean x)
setUseWorkerThreadForEvent
in interface EventHandler
public void setWork(Work work)
setWork
in interface EventHandler
public Work getWork()
getWork
in interface EventHandler
Copyright © 2017 JBoss by Red Hat. All rights reserved.