public abstract class FractionScheduler extends Object
Fraction transactions.SystemCapability.Aafwk#ABILITY| 构造器 | 说明 |
|---|---|
FractionScheduler() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract FractionScheduler |
add(int containerComponentId,
Fraction fraction) |
Adds a specified
Fraction to the container identified by the given containerComponentId. |
abstract FractionScheduler |
add(int containerComponentId,
Fraction fraction,
String tag) |
Adds a specified
Fraction to the container identified by the given containerComponentId
and sets the given tag as the unified external identifier of the Fraction instance. |
abstract FractionScheduler |
hide(Fraction fraction) |
Hides a specified
Fraction instance. |
abstract FractionScheduler |
pushIntoStack(String tag) |
Adds this
Fraction transaction to the stack and adds a specified name for it. |
abstract FractionScheduler |
remove(Fraction fraction) |
Removes a specified
Fraction instance. |
abstract FractionScheduler |
replace(int containerComponentId,
Fraction fraction) |
Replaces a specified
Fraction instance in the container identified
by the given containerComponentId. |
abstract FractionScheduler |
show(Fraction fraction) |
Shows a specified
Fraction instance. |
abstract int |
submit() |
Submits this
Fraction transaction for performing Fraction lifecycle-related operations. |
public abstract FractionScheduler add(int containerComponentId, Fraction fraction)
Fraction to the container identified by the given containerComponentId.containerComponentId - Identifies the container where the Fraction instance will be added.fraction - Indicates the Fraction instance to add.FractionScheduler instance used to perform the Fraction transaction.public abstract FractionScheduler add(int containerComponentId, Fraction fraction, String tag)
Fraction to the container identified by the given containerComponentId
and sets the given tag as the unified external identifier of the Fraction instance.containerComponentId - Identifies the container where the Fraction instance will be added.fraction - Indicates the Fraction instance to add.tag - Indicates the unified identifier to set for the Fraction instance.FractionScheduler instance used to perform the Fraction transaction.public abstract FractionScheduler replace(int containerComponentId, Fraction fraction)
Fraction instance in the container identified
by the given containerComponentId.
If the specified Fraction already exists in the container, this method will replace it. Otherwise,
this method is equivalent to the add operation.
containerComponentId - Identifies the container where the Fraction instance will be replaced.fraction - Indicates the Fraction instance to replace.FractionScheduler instance used to perform the Fraction transaction.public abstract FractionScheduler remove(Fraction fraction)
Fraction instance.fraction - Indicates the Fraction instance to remove.FractionScheduler instance used to perform the Fraction transaction.public abstract FractionScheduler hide(Fraction fraction)
Fraction instance.fraction - Indicates the Fraction instance to hide.FractionScheduler instance used to perform the Fraction transaction.public abstract FractionScheduler show(Fraction fraction)
Fraction instance.fraction - Indicates the Fraction instance to show.FractionScheduler instance used to perform the Fraction transaction.public abstract int submit()
Fraction transaction for performing Fraction lifecycle-related operations.Fraction transaction after it is added to the stack;
returns a negative value if pushIntoStack(java.lang.String) was not called.public abstract FractionScheduler pushIntoStack(String tag)
Fraction transaction to the stack and adds a specified name for it.tag - Indicates the name of the Fraction transaction to add after it is added to the stack,
which can also be null.FractionScheduler instance used to perform the Fraction transaction.