protected class SocketConnection.SendRunnable extends Object implements Runnable
Modifier | Constructor and Description |
---|---|
protected |
SocketConnection.SendRunnable() |
public void run()
Overridden to pull messages off the
SocketConnection.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 Runnable
Runnable.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-2013 Allanbank Consulting, Inc.. All Rights Reserved.