T
- type of DistributedPrimitivepublic abstract class Synchronous<T extends DistributedPrimitive> extends java.lang.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 |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
destroy()
Purges state associated with this primitive.
|
java.lang.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 java.lang.String name()
DistributedPrimitive
name
in interface DistributedPrimitive
public DistributedPrimitive.Type primitiveType()
DistributedPrimitive
primitiveType
in interface DistributedPrimitive
public java.util.concurrent.CompletableFuture<java.lang.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