T
- type of DistributedPrimitivepublic abstract class Synchronous<T extends DistributedPrimitive> extends Object implements DistributedPrimitive
DistributedPrimitive.Status, DistributedPrimitive.Type
DEFAULT_OPERATION_TIMEOUT_MILLIS, DEFAULT_OPERTATION_TIMEOUT_MILLIS
Constructor and Description |
---|
Synchronous(T primitive) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
destroy()
Purges state associated with this primitive.
|
String |
name()
Returns the name of this primitive.
|
DistributedPrimitive.Type |
primitiveType()
Returns the type of primitive.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatusChangeListener, applicationId, removeStatusChangeListener, statusChangeListeners
public Synchronous(T primitive)
public String name()
DistributedPrimitive
name
in interface DistributedPrimitive
public DistributedPrimitive.Type primitiveType()
DistributedPrimitive
primitiveType
in interface DistributedPrimitive
public CompletableFuture<Void> destroy()
DistributedPrimitive
Implementations can override and provide appropriate clean up logic for purging any state state associated with the primitive. Whether modifications made within the destroy method have local or global visibility is left unspecified.
destroy
in interface DistributedPrimitive
CompletableFuture
that is completed when the operation completes