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 long
private static final AtomicLong
private boolean
private int
private long
static final int
static final int
private final long
static final int
private final int
private int
private String
private int
Fields 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 TypeMethodDescriptionint
long
int
int
long
getSize()
long
int
int
boolean
void
setAutoPause
(boolean b) void
setIndicativeOrder
(int _order) void
setProgress
(int _thousandths) void
setSize
(long _size) void
setSubTaskName
(String name) void
setTaskState
(int _state) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getAllocID
in interfaceCoreOperationTask.ProgressCallback
-
getSortParam
public long getSortParam()- Specified by:
getSortParam
in interfaceCoreOperationTask.ProgressCallback
-
getProgress
public int getProgress()- Specified by:
getProgress
in interfaceCoreOperationTask.ProgressCallback
-
setProgress
public void setProgress(int _thousandths) - Specified by:
setProgress
in interfaceCoreOperationTask.ProgressCallback
-
getSize
public long getSize()- Specified by:
getSize
in interfaceCoreOperationTask.ProgressCallback
-
setSize
public void setSize(long _size) - Specified by:
setSize
in interfaceCoreOperationTask.ProgressCallback
-
getSubTaskName
- Specified by:
getSubTaskName
in interfaceCoreOperationTask.ProgressCallback
-
setSubTaskName
- Specified by:
setSubTaskName
in interfaceCoreOperationTask.ProgressCallback
-
isAutoPause
public boolean isAutoPause()- Specified by:
isAutoPause
in interfaceCoreOperationTask.ProgressCallback
-
setAutoPause
public void setAutoPause(boolean b) - Specified by:
setAutoPause
in interfaceCoreOperationTask.ProgressCallback
-
getIndicativeOrder
public int getIndicativeOrder()- Specified by:
getIndicativeOrder
in interfaceCoreOperationTask.ProgressCallback
-
setIndicativeOrder
public void setIndicativeOrder(int _order) - Specified by:
setIndicativeOrder
in interfaceCoreOperationTask.ProgressCallback
-
getSupportedTaskStates
public int getSupportedTaskStates()- Specified by:
getSupportedTaskStates
in interfaceCoreOperationTask.ProgressCallback
-
setTaskState
public void setTaskState(int _state) - Specified by:
setTaskState
in interfaceCoreOperationTask.ProgressCallback
-
getTaskState
public int getTaskState()- Specified by:
getTaskState
in interfaceCoreOperationTask.ProgressCallback
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CoreOperationTask.ProgressCallback>
-