Package io.atomix.primitive
Class Synchronous<T extends AsyncPrimitive>
java.lang.Object
io.atomix.primitive.Synchronous<T>
- Type Parameters:
T- type of DistributedPrimitive
- All Implemented Interfaces:
DistributedPrimitive,SyncPrimitive
public abstract class Synchronous<T extends AsyncPrimitive> extends Object implements SyncPrimitive
DistributedPrimitive that is a synchronous (blocking) version of
another.
-
Field Summary
Fields inherited from interface io.atomix.primitive.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS -
Constructor Summary
Constructors Constructor Description Synchronous(T primitive) -
Method Summary
Modifier and Type Method Description voidclose()Closes the primitive.voiddelete()Purges state associated with this primitive.Stringname()Returns the name of this primitive.PrimitiveProtocolprotocol()Returns the primitive protocol.PrimitiveTypetype()Returns the type of primitive.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.atomix.primitive.DistributedPrimitive
addStateChangeListener, removeStateChangeListener
-
Constructor Details
-
Method Details
-
name
Description copied from interface:DistributedPrimitiveReturns the name of this primitive.- Specified by:
namein interfaceDistributedPrimitive- Returns:
- name
-
type
Description copied from interface:DistributedPrimitiveReturns the type of primitive.- Specified by:
typein interfaceDistributedPrimitive- Returns:
- primitive type
-
protocol
Description copied from interface:DistributedPrimitiveReturns the primitive protocol.- Specified by:
protocolin interfaceDistributedPrimitive- Returns:
- the primitive protocol
-
delete
public void delete()Description copied from interface:SyncPrimitivePurges state associated with this primitive.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.
- Specified by:
deletein interfaceSyncPrimitive
-
close
public void close()Description copied from interface:SyncPrimitiveCloses the primitive.- Specified by:
closein interfaceSyncPrimitive
-