Package com.biglybt.core.disk.impl
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 boolean
private final Core
private static boolean
private static final AtomicLong
private TimerEventPeriodic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
static void
initialise
(Core core) static boolean
void
operationAdded
(CoreOperation operation) boolean
operationExecuteRequest
(CoreOperation operation) void
operationRemoved
(CoreOperation operation) private void
schedule()
-
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:
operationExecuteRequest
in interfaceCoreOperationListener
- Parameters:
operation
-- Returns:
- true if the listener has taken responsibility for running an operation task
-
operationAdded
- Specified by:
operationAdded
in interfaceCoreOperationListener
-
operationRemoved
- Specified by:
operationRemoved
in interfaceCoreOperationListener
-