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 Acceptor
acceptor
private long
enqueueTime
private boolean
keepRunning
private ORB
orb
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description ListenerThreadImpl(ORB orb, Acceptor acceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private void
display(java.lang.String msg)
private void
display(java.lang.String msg, java.lang.Object value)
void
doWork()
This method denotes the actual work that is done by the work item.Acceptor
getAcceptor()
long
getEnqueueTime()
This methods gets the time in millis in the work item, when this work item was enqueued in the work queue.java.lang.String
getName()
This method will return the name of the work item.private boolean
isRunning()
void
setEnqueueTime(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:
getAcceptor
in interfaceListenerThread
-
close
public void close()
- Specified by:
close
in 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:Work
This method denotes the actual work that is done by the work item.
-
setEnqueueTime
public void setEnqueueTime(long timeInMillis)
Description copied from interface:Work
This methods sets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
setEnqueueTime
in interfaceWork
-
getEnqueueTime
public long getEnqueueTime()
Description copied from interface:Work
This methods gets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
getEnqueueTime
in interfaceWork
-
-