Interface ResumableListener
-
- All Known Implementing Classes:
ResumableRandomAccessFileListener
public interface ResumableListenerA listener class that can be used to digest the bytes from anResumableAsyncHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longlength()Return the length of previously downloaded bytes.voidonAllBytesReceived()Invoked when all the bytes has been successfully transferred.voidonBytesReceived(ByteBuffer byteBuffer)Invoked when some bytes are available to digest.
-
-
-
Method Detail
-
onBytesReceived
void onBytesReceived(ByteBuffer byteBuffer) throws IOException
Invoked when some bytes are available to digest.- Parameters:
byteBuffer- the current bytes- Throws:
IOException- exception while writing the byteBuffer
-
onAllBytesReceived
void onAllBytesReceived()
Invoked when all the bytes has been successfully transferred.
-
length
long length()
Return the length of previously downloaded bytes.- Returns:
- the length of previously downloaded bytes
-
-