Package one.microstream.storage.types
Interface StorageChannel.HousekeepingTask
- Enclosing interface:
- StorageChannel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface StorageChannel.HousekeepingTask
-
Method Summary
Modifier and Type Method Description boolean
perform()
Performs a housekeeping task with reference to a starting time of the current housekeeping cycle (typically to make a best effort attempt to not exceed a certain time budget).
-
Method Details
-
perform
boolean perform()Performs a housekeeping task with reference to a starting time of the current housekeeping cycle (typically to make a best effort attempt to not exceed a certain time budget). Returns true if the task was completed (e.g. currently no more work to dor) or false if the task execution had to be interrupted.- Returns:
- whether the task was completed in the given time budget.
-