Package com.biglybt.core
Class CoreOperationTask.ProgressCallbackAdapter
java.lang.Object
com.biglybt.core.CoreOperationTask.ProgressCallbackAdapter
- All Implemented Interfaces:
CoreOperationTask.ProgressCallback,Comparable<CoreOperationTask.ProgressCallback>
- Direct Known Subclasses:
DiskManagerAllocationScheduler.AllocationInstance.Callback,DiskManagerRecheckScheduler.DiskManagerRecheckInstance.Callback
- Enclosing interface:
CoreOperationTask
public static class CoreOperationTask.ProgressCallbackAdapter
extends Object
implements CoreOperationTask.ProgressCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate static final AtomicLongprivate booleanprivate intprivate longstatic final intstatic final intprivate final longstatic final intprivate final intprivate intprivate Stringprivate intFields inherited from interface com.biglybt.core.CoreOperationTask.ProgressCallback
ST_BUTTONS, ST_CANCEL, ST_MINIMIZE, ST_NONE, ST_PAUSE, ST_QUEUED, ST_RESUME, ST_SUBTASKS, STYLE_MINIMIZE, STYLE_MODAL, STYLE_NO_CLOSE, STYLE_NONE -
Constructor Summary
ConstructorsConstructorDescriptionProgressCallbackAdapter(int _sort_type) ProgressCallbackAdapter(int _sort_type, long _sort_param) -
Method Summary
Modifier and TypeMethodDescriptionintlongintintlonggetSize()longintintbooleanvoidsetAutoPause(boolean b) voidsetIndicativeOrder(int _order) voidsetProgress(int _thousandths) voidsetSize(long _size) voidsetSubTaskName(String name) voidsetTaskState(int _state) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.biglybt.core.CoreOperationTask.ProgressCallback
getDelay, getStyle
-
Field Details
-
SORT_ALLOC_ORDER
public static final int SORT_ALLOC_ORDER- See Also:
-
SORT_SIZE
public static final int SORT_SIZE- See Also:
-
SORT_EXPLICIT_ORDER
public static final int SORT_EXPLICIT_ORDER- See Also:
-
alloc_id_next
-
alloc_id
private final long alloc_id -
sort_type
private final int sort_type -
sort_param
private final long sort_param -
thousandths
private volatile int thousandths -
size
private volatile long size -
state
private volatile int state -
subtask
-
auto_pause
private volatile boolean auto_pause -
order
private volatile int order
-
-
Constructor Details
-
ProgressCallbackAdapter
public ProgressCallbackAdapter() -
ProgressCallbackAdapter
public ProgressCallbackAdapter(int _sort_type) -
ProgressCallbackAdapter
public ProgressCallbackAdapter(int _sort_type, long _sort_param)
-
-
Method Details
-
getAllocID
public long getAllocID()- Specified by:
getAllocIDin interfaceCoreOperationTask.ProgressCallback
-
getSortParam
public long getSortParam()- Specified by:
getSortParamin interfaceCoreOperationTask.ProgressCallback
-
getProgress
public int getProgress()- Specified by:
getProgressin interfaceCoreOperationTask.ProgressCallback
-
setProgress
public void setProgress(int _thousandths) - Specified by:
setProgressin interfaceCoreOperationTask.ProgressCallback
-
getSize
public long getSize()- Specified by:
getSizein interfaceCoreOperationTask.ProgressCallback
-
setSize
public void setSize(long _size) - Specified by:
setSizein interfaceCoreOperationTask.ProgressCallback
-
getSubTaskName
- Specified by:
getSubTaskNamein interfaceCoreOperationTask.ProgressCallback
-
setSubTaskName
- Specified by:
setSubTaskNamein interfaceCoreOperationTask.ProgressCallback
-
isAutoPause
public boolean isAutoPause()- Specified by:
isAutoPausein interfaceCoreOperationTask.ProgressCallback
-
setAutoPause
public void setAutoPause(boolean b) - Specified by:
setAutoPausein interfaceCoreOperationTask.ProgressCallback
-
getIndicativeOrder
public int getIndicativeOrder()- Specified by:
getIndicativeOrderin interfaceCoreOperationTask.ProgressCallback
-
setIndicativeOrder
public void setIndicativeOrder(int _order) - Specified by:
setIndicativeOrderin interfaceCoreOperationTask.ProgressCallback
-
getSupportedTaskStates
public int getSupportedTaskStates()- Specified by:
getSupportedTaskStatesin interfaceCoreOperationTask.ProgressCallback
-
setTaskState
public void setTaskState(int _state) - Specified by:
setTaskStatein interfaceCoreOperationTask.ProgressCallback
-
getTaskState
public int getTaskState()- Specified by:
getTaskStatein interfaceCoreOperationTask.ProgressCallback
-
compareTo
- Specified by:
compareToin interfaceComparable<CoreOperationTask.ProgressCallback>
-