protected class TwoThreadSocketConnection.SendRunnable extends Object implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
TwoThreadSocketConnection.SendRunnable() |
protected TwoThreadSocketConnection.SendRunnable()
public void run()
Overridden to pull messages off the
TwoThreadSocketConnection.myToSendQueue and push them into
the socket connection. If null is ever received from a
poll of the queue then the socket connection is flushed and blocking
call is made to the queue.
run in interface RunnableRunnable.run()protected final void doFlush()
throws IOException
IOException - On a failure flushing the messages.protected final void sendOne()
throws InterruptedException,
IOException
InterruptedException - If the thread is interrupted waiting for a message to
send.IOException - On a failure sending the message.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.