java.lang.Object
net.i2p.client.impl.I2PSessionImpl.AvailabilityNotifier
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
I2PSessionMuxedImpl.MuxedAvailabilityNotifier
- Enclosing class:
I2PSessionImpl
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether the sender thread should keep running.Message ids waiting for a send slot.Sizes of the messages waiting for a send slot.Constructor Summary
ConstructorsConstructorDescriptionCreates the notifier with its pending queues empty; ids and sizes are queued byavailable(long, int)and drained by the run loop.Method Summary
Field Details
_pendingIds
_pendingSizes
_alive
private volatile boolean _aliveWhether the sender thread should keep running.
Constructor Details
AvailabilityNotifier
public AvailabilityNotifier()Creates the notifier with its pending queues empty; ids and sizes are queued byavailable(long, int)and drained by the run loop.
Method Details
stopNotifying
public void stopNotifying()Stop notifying.available
public void available(long msgId, int size) Notify that a message is available.- Parameters:
msgId- the message IDsize- the unencrypted payload length in bytes
run