Interface SyncPrimitive<S extends SyncPrimitive<S,A>,A extends AsyncPrimitive<A,S>>

All Superinterfaces:
DistributedPrimitive
All Known Subinterfaces:
AtomicCounter, AtomicCounterMap<K>, AtomicLock, AtomicMap<K,V>, AtomicValue<V>, DistributedCollection<E>, DistributedLock, DistributedMap<K,V>, DistributedMultimap<K,V>, DistributedMultiset<E>, DistributedSet<E>, LeaderElection<T>
All Known Implementing Classes:
Synchronous

public interface SyncPrimitive<S extends SyncPrimitive<S,A>,A extends AsyncPrimitive<A,S>> extends DistributedPrimitive
Synchronous primitive.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Duration
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the underlying asynchronous primitive.
    void
    Closes the primitive.

    Methods inherited from interface io.atomix.client.DistributedPrimitive

    name
  • Field Details

    • DEFAULT_OPERATION_TIMEOUT

      static final Duration DEFAULT_OPERATION_TIMEOUT
  • Method Details

    • close

      void close()
      Closes the primitive.
    • async

      A async()
      Returns the underlying asynchronous primitive.
      Returns:
      the underlying asynchronous primitive