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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoididle(Connection connection) Called when the connection is below theidle threshold.protected abstract Objectnext()Returns the next object to send, or null if no more objects will be sent.protected voidstart()Called once, before the first send.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.net.NetListener
connected, disconnected, received
-
Constructor Details
-
TcpIdleSender
public TcpIdleSender()
-
-
Method Details
-
idle
Description copied from interface:NetListenerCalled when the connection is below theidle threshold.- Specified by:
idlein 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.
-