Class DiskManagerOperationScheduler
java.lang.Object
com.biglybt.core.disk.impl.DiskManagerOperationScheduler
- All Implemented Interfaces:
CoreOperationListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Coreprivate static booleanprivate static final AtomicLongprivate TimerEventPeriodic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic voidinitialise(Core core) static booleanvoidoperationAdded(CoreOperation operation) booleanoperationExecuteRequest(CoreOperation operation) voidoperationRemoved(CoreOperation operation) private voidschedule()
-
Field Details
-
enabled
private static boolean enabled -
core
-
operations
-
timer
-
concurrent_reads
private boolean concurrent_reads -
fakeNumber
-
-
Constructor Details
-
DiskManagerOperationScheduler
-
-
Method Details
-
initialise
-
isEnabled
public static boolean isEnabled() -
checkConfig
private void checkConfig() -
schedule
private void schedule() -
operationExecuteRequest
- Specified by:
operationExecuteRequestin interfaceCoreOperationListener- Parameters:
operation-- Returns:
- true if the listener has taken responsibility for running an operation task
-
operationAdded
- Specified by:
operationAddedin interfaceCoreOperationListener
-
operationRemoved
- Specified by:
operationRemovedin interfaceCoreOperationListener
-