Class DefaultChunkedPacketProvider
java.lang.Object
eu.cloudnetservice.driver.network.chunk.defaults.DefaultChunkedPacketProvider
- All Implemented Interfaces:
ChunkedPacketProvider
- Direct Known Subclasses:
DefaultFileChunkedPacketHandler,DefaultFileChunkPacketSender
Represents a default, shared implementation of a chunked packet provider.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ChunkSessionInformationprotected TransferStatus -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultChunkedPacketProvider(@NonNull ChunkSessionInformation sessionInformation) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionGet the session information which is associated with this provider.Get the current transfer status, either while sending or receiving.
-
Field Details
-
chunkSessionInformation
-
transferStatus
-
-
Constructor Details
-
DefaultChunkedPacketProvider
protected DefaultChunkedPacketProvider(@NonNull @NonNull ChunkSessionInformation sessionInformation) Creates a new instance of this class.- Parameters:
sessionInformation- the information about the chunked session.- Throws:
NullPointerException- if the given session information is null.
-
-
Method Details
-
transferStatus
Get the current transfer status, either while sending or receiving.- Specified by:
transferStatusin interfaceChunkedPacketProvider- Returns:
- the current transfer status
-
sessionInformation
Get the session information which is associated with this provider.- Specified by:
sessionInformationin interfaceChunkedPacketProvider- Returns:
- the session information.
-