Interface ChunkedPacketHandler.Callback
- Enclosing interface:
ChunkedPacketHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback called once the full data of the chunk session was received successfully.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleSessionComplete(@NonNull ChunkSessionInformation information, @NonNull InputStream dataInput) Handles the completion and therefore full receive of the data transferred by the other component.
-
Method Details
-
handleSessionComplete
boolean handleSessionComplete(@NonNull @NonNull ChunkSessionInformation information, @NonNull @NonNull InputStream dataInput) throws IOException Handles the completion and therefore full receive of the data transferred by the other component.- Parameters:
information- the information about the chunk session which were sent initially.dataInput- the stream of data sent to this component in this chunked session.- Returns:
- true if the full data was consumed and the given stream can be closed, false otherwise.
- Throws:
IOException- in case an i/o exception happens during result handling.NullPointerException- if the given session information or data input stream is null.
-