Interface DistributedPrimitiveCreator


  • public interface DistributedPrimitiveCreator
    Interface for entity that can create instances of different distributed primitives.
    • Method Detail

      • newAsyncConsistentMap

        <K,​V> AsyncConsistentMap<K,​V> newAsyncConsistentMap​(ConsistentMapOptions options)
        Creates a new AsyncConsistentMap.
        Type Parameters:
        K - key type
        V - value type
        Parameters:
        options - map options
        Returns:
        map
      • newAsyncConsistentTreeMap

        <V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap​(ConsistentTreeMapOptions options)
        Creates a new AsyncConsistentTreeMap.
        Type Parameters:
        V - value type
        Parameters:
        options - tree map options
        Returns:
        distributedTreeMap
      • newAsyncConsistentSetMultimap

        <K,​V> AsyncConsistentMultimap<K,​V> newAsyncConsistentSetMultimap​(ConsistentMultimapOptions options)
        Creates a new set backed AsyncConsistentMultimap.
        Type Parameters:
        K - key type
        V - value type
        Parameters:
        options - multimap options
        Returns:
        set backed distributedMultimap
      • newAsyncAtomicCounterMap

        <K> AsyncAtomicCounterMap<K> newAsyncAtomicCounterMap​(AtomicCounterMapOptions options)
        Creates a new AsyncAtomicCounterMap.
        Type Parameters:
        K - key type
        Parameters:
        options - counter map options
        Returns:
        atomic counter map
      • newAsyncAtomicValue

        <V> AsyncAtomicValue<V> newAsyncAtomicValue​(AtomicValueOptions options)
        Creates a new AsyncAtomicValue.
        Type Parameters:
        V - value type
        Parameters:
        options - value options
        Returns:
        value
      • newAsyncDistributedSet

        <E> AsyncDistributedSet<E> newAsyncDistributedSet​(DistributedSetOptions options)
        Creates a new AsyncDistributedSet.
        Type Parameters:
        E - set entry type
        Parameters:
        options - set options
        Returns:
        set
      • newAsyncLeaderElector

        AsyncLeaderElector newAsyncLeaderElector​(LeaderElectorOptions options)
        Creates a new AsyncLeaderElector.
        Parameters:
        options - leader elector options
        Returns:
        leader elector
      • newWorkQueue

        <E> WorkQueue<E> newWorkQueue​(WorkQueueOptions options)
        Creates a new WorkQueue.
        Type Parameters:
        E - work element type
        Parameters:
        options - work queue options
        Returns:
        work queue
      • newAsyncDocumentTree

        <V> AsyncDocumentTree<V> newAsyncDocumentTree​(DocumentTreeOptions options)
        Creates a new AsyncDocumentTree.
        Type Parameters:
        V - document tree node value type
        Parameters:
        options - tree options
        Returns:
        document tree
      • getAsyncConsistentMapNames

        java.util.Set<java.lang.String> getAsyncConsistentMapNames()
        Returns the names of all created AsyncConsistentMap instances.
        Returns:
        set of AsyncConsistentMap names
      • getAsyncAtomicCounterNames

        java.util.Set<java.lang.String> getAsyncAtomicCounterNames()
        Returns the names of all created AsyncAtomicCounter instances.
        Returns:
        set of AsyncAtomicCounter names
      • getWorkQueueNames

        java.util.Set<java.lang.String> getWorkQueueNames()
        Returns the names of all created WorkQueue instances.
        Returns:
        set of WorkQueue names