Package io.atomix.primitive
Interface SyncPrimitive
- All Superinterfaces:
DistributedPrimitive
- All Known Implementing Classes:
Synchronous
public interface SyncPrimitive extends DistributedPrimitive
Synchronous primitive.
-
Field Summary
Fields inherited from interface io.atomix.primitive.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS
-
Method Summary
Modifier and Type Method Description AsyncPrimitive
async()
Returns the underlying asynchronous primitive.void
close()
Closes the primitive.default void
delete()
Purges state associated with this primitive.Methods inherited from interface io.atomix.primitive.DistributedPrimitive
addStateChangeListener, name, protocol, removeStateChangeListener, type
-
Method Details
-
delete
default void delete()Purges 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.
-
close
void close()Closes the primitive. -
async
AsyncPrimitive async()Returns the underlying asynchronous primitive.- Returns:
- the underlying asynchronous primitive
-