Interface DistributedSet<E>

Type Parameters:
E - set entry type
All Superinterfaces:
Collection<E>, DistributedCollection<E>, DistributedPrimitive, Iterable<E>, Set<E>, SyncIterable<E>, SyncPrimitive

public interface DistributedSet<E> extends DistributedCollection<E>, Set<E>
A distributed collection designed for holding unique elements.
  • Method Details

    • add

      boolean add(E element, Duration ttl)
      Adds the specified element to this collection if it is not already present (optional operation).
      Parameters:
      element - element to add
      Returns:
      true if this collection did not already contain the specified element.
    • async

      Description copied from interface: SyncPrimitive
      Returns the underlying asynchronous primitive.
      Specified by:
      async in interface DistributedCollection<E>
      Specified by:
      async in interface SyncPrimitive
      Returns:
      the underlying asynchronous primitive