Interface ReceivedBlockHandler
public interface ReceivedBlockHandler
Trait that represents a class that handles the storage of blocks received by receiver
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupOldBlocks
(long threshTime) Cleanup old blocks older than the given threshold timestoreBlock
(StreamBlockId blockId, ReceivedBlock receivedBlock) Store a received block with the given block id and return related metadata
-
Method Details
-
cleanupOldBlocks
void cleanupOldBlocks(long threshTime) Cleanup old blocks older than the given threshold time -
storeBlock
Store a received block with the given block id and return related metadata
-