Package com.sun.corba.ee.impl.transport
Class EventHandlerBase
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.EventHandlerBase
-
- All Implemented Interfaces:
EventHandler
- Direct Known Subclasses:
AcceptorBase
,ConnectionImpl
public abstract class EventHandlerBase extends java.lang.Object implements EventHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ORB
orb
protected java.nio.channels.SelectionKey
selectionKey
protected boolean
useSelectThreadToWait
protected boolean
useWorkerThreadForEvent
protected Work
work
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description EventHandlerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
display(java.lang.String msg)
private void
display(java.lang.String msg, java.lang.Object value)
java.nio.channels.SelectionKey
getSelectionKey()
Work
getWork()
void
handleEvent()
void
setSelectionKey(java.nio.channels.SelectionKey selectionKey)
void
setUseSelectThreadToWait(boolean x)
void
setUseWorkerThreadForEvent(boolean x)
void
setWork(Work work)
boolean
shouldUseSelectThreadToWait()
boolean
shouldUseWorkerThreadForEvent()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.corba.ee.spi.transport.EventHandler
getAcceptor, getChannel, getConnection, getInterestOps
-
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
orb
protected ORB orb
-
work
protected Work work
-
useWorkerThreadForEvent
protected boolean useWorkerThreadForEvent
-
useSelectThreadToWait
protected boolean useSelectThreadToWait
-
selectionKey
protected java.nio.channels.SelectionKey selectionKey
-
-
Method Detail
-
setUseSelectThreadToWait
public void setUseSelectThreadToWait(boolean x)
- Specified by:
setUseSelectThreadToWait
in interfaceEventHandler
-
shouldUseSelectThreadToWait
public boolean shouldUseSelectThreadToWait()
- Specified by:
shouldUseSelectThreadToWait
in interfaceEventHandler
-
setSelectionKey
public void setSelectionKey(java.nio.channels.SelectionKey selectionKey)
- Specified by:
setSelectionKey
in interfaceEventHandler
-
getSelectionKey
public java.nio.channels.SelectionKey getSelectionKey()
- Specified by:
getSelectionKey
in interfaceEventHandler
-
display
@InfoMethod private void display(java.lang.String msg)
-
display
@InfoMethod private void display(java.lang.String msg, java.lang.Object value)
-
handleEvent
public void handleEvent()
- Specified by:
handleEvent
in interfaceEventHandler
-
shouldUseWorkerThreadForEvent
public boolean shouldUseWorkerThreadForEvent()
- Specified by:
shouldUseWorkerThreadForEvent
in interfaceEventHandler
-
setUseWorkerThreadForEvent
public void setUseWorkerThreadForEvent(boolean x)
- Specified by:
setUseWorkerThreadForEvent
in interfaceEventHandler
-
setWork
public void setWork(Work work)
- Specified by:
setWork
in interfaceEventHandler
-
getWork
public Work getWork()
- Specified by:
getWork
in interfaceEventHandler
-
-