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 Connection
connection
private long
enqueueTime
private boolean
keepRunning
private ORB
orb
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description ReaderThreadImpl(ORB orb, Connection connection)
-
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.Connection
getConnection()
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
-
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:
getConnection
in interfaceReaderThread
-
close
public void close()
- Specified by:
close
in 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: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
-
-