com.esotericsoftware.kryonet
Class Listener.LagListener
java.lang.Object
com.esotericsoftware.kryonet.Listener
com.esotericsoftware.kryonet.Listener.QueuedListener
com.esotericsoftware.kryonet.Listener.LagListener
- Enclosing class:
- Listener
public static class Listener.LagListener
- extends Listener.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.
Method Summary |
void |
queue(java.lang.Runnable runnable)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Listener.LagListener
public Listener.LagListener(int lagMillisMin,
int lagMillisMax,
Listener listener)
queue
public void queue(java.lang.Runnable runnable)