Package arc.net

Class NetListener.LagListener

java.lang.Object
arc.net.NetListener.QueuedListener
arc.net.NetListener.LagListener
All Implemented Interfaces:
NetListener
Enclosing interface:
NetListener

public static class NetListener.LagListener extends NetListener.QueuedListener
Delays the notification of the wrapped listener to simulate lag on incoming objects. Notification events are processed on a separate thread after a delay. Note that only incoming objects are delayed. To delay outgoing objects, use a LagListener at the other end of the connection.