Package com.sun.corba.ee.impl.transport
Class ListenerThreadImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.ListenerThreadImpl
-
- All Implemented Interfaces:
Work,ListenerThread
public class ListenerThreadImpl extends java.lang.Object implements ListenerThread, Work
-
-
Field Summary
Fields Modifier and Type Field Description private Acceptoracceptorprivate longenqueueTimeprivate booleankeepRunningprivate ORBorbprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description ListenerThreadImpl(ORB orb, Acceptor acceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voiddisplay(java.lang.String msg)private voiddisplay(java.lang.String msg, java.lang.Object value)voiddoWork()This method denotes the actual work that is done by the work item.AcceptorgetAcceptor()longgetEnqueueTime()This methods gets the time in millis in the work item, when this work item was enqueued in the work queue.java.lang.StringgetName()This method will return the name of the work item.private booleanisRunning()voidsetEnqueueTime(long timeInMillis)This methods sets the time in millis in the work item, when this work item was enqueued in the work queue.
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
orb
private ORB orb
-
acceptor
private Acceptor acceptor
-
keepRunning
private boolean keepRunning
-
enqueueTime
private long enqueueTime
-
-
Method Detail
-
getAcceptor
public Acceptor getAcceptor()
- Specified by:
getAcceptorin interfaceListenerThread
-
close
public void close()
- Specified by:
closein interfaceListenerThread
-
isRunning
private boolean isRunning()
-
display
@InfoMethod private void display(java.lang.String msg)
-
display
@InfoMethod private void display(java.lang.String msg, java.lang.Object value)
-
doWork
public void doWork()
Description copied from interface:WorkThis method denotes the actual work that is done by the work item.
-
setEnqueueTime
public void setEnqueueTime(long timeInMillis)
Description copied from interface:WorkThis methods sets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
setEnqueueTimein interfaceWork
-
getEnqueueTime
public long getEnqueueTime()
Description copied from interface:WorkThis methods gets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
getEnqueueTimein interfaceWork
-
-