Package io.aether.net.fastMeta
Class ReliableTransportApi<T>
- java.lang.Object
-
- io.aether.net.fastMeta.ReliableTransport
-
- io.aether.net.fastMeta.ReliableTransportApi<T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public abstract class ReliableTransportApi<T> extends ReliableTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.aether.net.fastMeta.ReliableTransport
ReliableTransport.Position
-
-
Field Summary
-
Fields inherited from class io.aether.net.fastMeta.ReliableTransport
DEFAULT_MAX_JOURNAL_BYTES, DEFAULT_MAX_JOURNAL_PACKETS, DEFAULT_MAX_REORDER_PACKETS, DEFAULT_MAX_UNACKNOWLEDGED_AGE, DEFAULT_RETRANSMIT_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description ReliableTransportApi(int maxJournalPackets, long maxJournalBytes, int maxReorderPackets, java.time.Duration retransmitTimeout, java.time.Duration maxUnacknowledgedAge, FastMetaApi<T,? extends T> meta, T localApi)ReliableTransportApi(FastMetaApi<T,? extends T> meta, T localApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeliverPayload(byte[] payload)Принимает распакованный прикладной payload строго в порядке seqNo.-
Methods inherited from class io.aether.net.fastMeta.ReliableTransport
close, forceSynchronization, getJournalBytes, getJournalSize, getPendingPayloadCount, getPosition, getReorderBufferSize, isSynchronizing, loadPosition, receive, retransmitExpired, savePosition, send, sendPacket, start, start, start, synchronizeState
-
-
-
-
Constructor Detail
-
ReliableTransportApi
public ReliableTransportApi(FastMetaApi<T,? extends T> meta, T localApi)
-
ReliableTransportApi
public ReliableTransportApi(int maxJournalPackets, long maxJournalBytes, int maxReorderPackets, java.time.Duration retransmitTimeout, java.time.Duration maxUnacknowledgedAge, FastMetaApi<T,? extends T> meta, T localApi)
-
-
Method Detail
-
deliverPayload
protected void deliverPayload(byte[] payload)
Description copied from class:ReliableTransportПринимает распакованный прикладной payload строго в порядке seqNo.- Specified by:
deliverPayloadin classReliableTransport
-
-