Package arc.net
Class TcpIdleSender
java.lang.Object
arc.net.TcpIdleSender
- All Implemented Interfaces:
NetListener
- Direct Known Subclasses:
InputStreamSender
-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.net.NetListener
NetListener.LagListener, NetListener.QueuedListener, NetListener.ThreadedListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
idle
(Connection connection) Called when the connection is below theidle threshold
.protected abstract Object
next()
Returns the next object to send, or null if no more objects will be sent.protected void
start()
Called once, before the first send.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.net.NetListener
connected, disconnected, received
-
Constructor Details
-
TcpIdleSender
public TcpIdleSender()
-
-
Method Details
-
idle
Description copied from interface:NetListener
Called when the connection is below theidle threshold
.- Specified by:
idle
in interfaceNetListener
-
start
protected void start()Called once, before the first send. Subclasses can override this method to send something so the receiving side expects subsequent objects. -
next
Returns the next object to send, or null if no more objects will be sent.
-