Adds a collection of cancelables to this composite.
Adds a collection of cancelables to this composite.
If this composite is already canceled, then all the cancelables in the given collection will get canceled as well.
Alias for addAll.
Adds a cancelable reference to this composite.
Adds a cancelable reference to this composite.
If this composite is already canceled, then the given reference will be canceled as well.
Alias for add.
Removes a collection of cancelables from this composite.
Removes a collection of cancelables from this composite.
By removing references from the composite, we ensure that the removed references don't get canceled when the composite gets canceled. Also useful for garbage collecting purposes.
Alias for removeAll.
Removes a cancelable reference from this composite.
Removes a cancelable reference from this composite.
By removing references from the composite, we ensure that the removed references don't get canceled when the composite gets canceled. Also useful for garbage collecting purposes.
Alias for remove.
Adds a cancelable reference to this composite.
Adds a cancelable reference to this composite.
If this composite is already canceled, then the given reference will be canceled as well.
Adds a collection of cancelables to this composite.
Adds a collection of cancelables to this composite.
If this composite is already canceled, then all the cancelables in the given collection will get canceled as well.
Cancels the unit of work represented by this reference.
Cancels the unit of work represented by this reference.
Guaranteed idempotency - calling it multiple times should have the same side-effect as calling it only once. Implementations of this method should also be thread-safe.
true in case this cancelable hasn't been canceled, or false otherwise.
Removes a cancelable reference from this composite.
Removes a cancelable reference from this composite.
By removing references from the composite, we ensure that the removed references don't get canceled when the composite gets canceled. Also useful for garbage collecting purposes.
Removes a collection of cancelables from this composite.
Removes a collection of cancelables from this composite.
By removing references from the composite, we ensure that the removed references don't get canceled when the composite gets canceled. Also useful for garbage collecting purposes.
Resets this composite to an empty state, if not canceled, otherwise leaves it in the canceled state.
Represents a composite of multiple cancelables. In case it is canceled, all contained cancelables will be canceled too, e.g...
Additionally, once canceled, on appending of new cancelable references, those references will automatically get canceled too:
Adding and removing references from this composite is thread-safe.