@FunctionalInterface public interface NewChunkListener
MappedFile in MappedBytes.
This listener provides a mechanism to perform actions or react to events whenever a new chunk is added to a MappedFile.
Implementations should define the onNewChunk(String, int, long) method to handle the event.
| Modifier and Type | Method and Description |
|---|---|
void |
onNewChunk(String filename,
int chunk,
long delayMicros)
This method is invoked when a new chunk is added to a
MappedFile in MappedBytes. |
void onNewChunk(String filename, int chunk, long delayMicros)
MappedFile in MappedBytes.filename - the name of the file to which a new chunk has been addedchunk - the number (or identifier) of the new chunkdelayMicros - the delay in microseconds from when the chunk was scheduled to be added, to when it was actually addedCopyright © 2024. All rights reserved.