| java.lang.Object java.lang.Thread org.datashare.TransmitDataThread
TransmitDataThread | class TransmitDataThread extends Thread (Code) | | this class was created in an attempt to move the re-transmission of data from the receiving SocketAdapter's
Thread, to a sending Socket's transmission Thread, as provided by this class. The receiving
Socket now uses this class to have the data to be re-transmitted buffered and transmiitted by a Thread
other than its own (this one!).
|
Method Summary | |
public void | addData(DataShareObject dso) used to put the DataShareObjects to be transmited by our SocketAdapter into a buffer
prior to transmitting them, should not be called from this thread. | public void | run() tests to see if there is any data to transmit, transmits it using our SocketAdapter,
then waits for more data. | public void | stopThread() call this method when it is desired to stop this Thread. |
TransmitDataThread | public TransmitDataThread(SocketAdapter sa)(Code) | | constructor, this thread must be started before addData() should be called.
Parameters: sa - our SocketAdapter which is used to transmit any DataShareObjects passed intothe addData method. |
addData | public void addData(DataShareObject dso)(Code) | | used to put the DataShareObjects to be transmited by our SocketAdapter into a buffer
prior to transmitting them, should not be called from this thread.
Parameters: dso - the object to be transmitted over our SocketAdapater's connection |
run | public void run()(Code) | | tests to see if there is any data to transmit, transmits it using our SocketAdapter,
then waits for more data.
|
stopThread | public void stopThread()(Code) | | call this method when it is desired to stop this Thread.
|
|
|