Package com.sun.corba.ee.impl.transport
Class ReaderThreadImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.ReaderThreadImpl
-
- All Implemented Interfaces:
Work,ReaderThread
public class ReaderThreadImpl extends java.lang.Object implements ReaderThread, Work
-
-
Field Summary
Fields Modifier and Type Field Description private Connectionconnectionprivate longenqueueTimeprivate booleankeepRunningprivate ORBorbprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description ReaderThreadImpl(ORB orb, Connection connection)
-
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.ConnectiongetConnection()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
-
orb
private ORB orb
-
connection
private Connection connection
-
keepRunning
private boolean keepRunning
-
enqueueTime
private long enqueueTime
-
wrapper
private static final ORBUtilSystemException wrapper
-
-
Constructor Detail
-
ReaderThreadImpl
public ReaderThreadImpl(ORB orb, Connection connection)
-
-
Method Detail
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfaceReaderThread
-
close
public void close()
- Specified by:
closein interfaceReaderThread
-
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
-
-