Interface CollectionManager

  • All Known Subinterfaces:
    DataStructureManager

    public interface CollectionManager
    This interface contains Create and Get operations for all collection data types
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> DistributedHashSet<T> createHashSet​(java.lang.String key, DataStructureAttributes attributes, WriteThruOptions options, java.lang.Class<?> cls)
      Creates distributed set against the provided collection name and configures it according to the provided user configuration as attributes of collection.
      <T> DistributedHashSet<T> createHashSet​(java.lang.String key, java.lang.Class<?> cls)
      Creates distributed set against the provided collection name.
      <T> DistributedList<T> createList​(java.lang.String key, DataStructureAttributes attributes, WriteThruOptions options, java.lang.Class<?> cls)
      Creates distributed list against the provided collection name and configures it according to the provided user configuration as attributes of collection.
      <T> DistributedList<T> createList​(java.lang.String key, java.lang.Class<?> cls)
      Creates distributed list against the provided collection name.
      <V> DistributedMap<java.lang.String,​V> createMap​(java.lang.String key, DataStructureAttributes attributes, WriteThruOptions options, java.lang.Class<?> cls)
      Creates distributed Map against the provided collection name and configures it according to the provided user configuration as attributes of collection.
      <V> DistributedMap<java.lang.String,​V> createMap​(java.lang.String key, java.lang.Class<?> cls)
      Creates distributed Map against the provided collection name.
      <T> DistributedQueue<T> createQueue​(java.lang.String key, DataStructureAttributes attributes, WriteThruOptions options, java.lang.Class<?> cls)
      Creates distributed queue against the provided collection name and configures it according to the provided user configuration as attributes of collection.
      <T> DistributedQueue<T> createQueue​(java.lang.String key, java.lang.Class<?> cls)
      Creates distributed queue against the provided collection name.
      <T> DistributedHashSet<T> getHashSet​(java.lang.String key, ReadThruOptions options, java.lang.Class<?> cls)
      Gets distributed set interface against the provided collection name.
      <T> DistributedHashSet<T> getHashSet​(java.lang.String key, java.lang.Class<?> cls)
      Gets distributed set interface against the provided collection name.
      <T> DistributedList<T> getList​(java.lang.String key, ReadThruOptions options, java.lang.Class<?> cls)
      Gets distributed list interface against the provided collection name.
      <T> DistributedList<T> getList​(java.lang.String key, java.lang.Class<?> cls)
      Gets distributed list interface against the provided collection name.
      <V> DistributedMap<java.lang.String,​V> getMap​(java.lang.String key, ReadThruOptions options, java.lang.Class<?> cls)
      Gets distributed Map interface against the provided collection name.
      <V> DistributedMap<java.lang.String,​V> getMap​(java.lang.String key, java.lang.Class<?> cls)
      Gets distributed Map interface against the provided collection name.
      <T> DistributedQueue<T> getQueue​(java.lang.String key, ReadThruOptions options, java.lang.Class<?> cls)
      Gets distributed queue interface against the provided collection name.
      <T> DistributedQueue<T> getQueue​(java.lang.String key, java.lang.Class<?> cls)
      Gets distributed queue interface against the provided collection name.
    • Method Detail

      • createList

        <T> DistributedList<T> createList​(java.lang.String key,
                                          java.lang.Class<?> cls)
                                   throws CacheException
        Creates distributed list against the provided collection name.
        Type Parameters:
        T - Type of list items.
        Parameters:
        key - Name of collection to be created.
        cls - Class of the list items.
        Returns:
        Interface for using list.
        Throws:
        CacheException
      • createList

        <T> DistributedList<T> createList​(java.lang.String key,
                                          DataStructureAttributes attributes,
                                          WriteThruOptions options,
                                          java.lang.Class<?> cls)
                                   throws CacheException
        Creates distributed list against the provided collection name and configures it according to the provided user configuration as attributes of collection.
        Type Parameters:
        T - Type of list items.
        Parameters:
        key - Name of collection to be created.
        attributes - DataStructureAttributes for providing user configuration for this collection.
        options - WriteThruOptions regarding updating the data source. This can be either WriteThru, WriteBehind or None.
        cls - Class of the list items.
        Returns:
        Interface for using list.
        Throws:
        CacheException
      • createQueue

        <T> DistributedQueue<T> createQueue​(java.lang.String key,
                                            java.lang.Class<?> cls)
                                     throws CacheException
        Creates distributed queue against the provided collection name.
        Type Parameters:
        T - Type of queue items.
        Parameters:
        key - Name of collection to be created.
        cls - Class of queue items.
        Returns:
        Interface for using queue.
        Throws:
        CacheException
      • createQueue

        <T> DistributedQueue<T> createQueue​(java.lang.String key,
                                            DataStructureAttributes attributes,
                                            WriteThruOptions options,
                                            java.lang.Class<?> cls)
                                     throws CacheException
        Creates distributed queue against the provided collection name and configures it according to the provided user configuration as attributes of collection.
        Type Parameters:
        T - Type of queue items.
        Parameters:
        key - Name of collection to be created.
        attributes - DataStructureAttributes for providing user configuration for this collection.
        options - WriteThruOptions regarding updating the data source. This can be either WriteThru, WriteBehind or None.
        cls - Class of queue items.
        Returns:
        Interface for using queue.
        Throws:
        CacheException
      • createMap

        <V> DistributedMap<java.lang.String,​V> createMap​(java.lang.String key,
                                                               java.lang.Class<?> cls)
                                                        throws CacheException
        Creates distributed Map against the provided collection name.
        Type Parameters:
        V - Type of Map values.
        Parameters:
        key - Name of collection to be created.
        cls - Class of Map values.
        Returns:
        Interface for using dictionary.
        Throws:
        CacheException
      • createMap

        <V> DistributedMap<java.lang.String,​V> createMap​(java.lang.String key,
                                                               DataStructureAttributes attributes,
                                                               WriteThruOptions options,
                                                               java.lang.Class<?> cls)
                                                        throws CacheException
        Creates distributed Map against the provided collection name and configures it according to the provided user configuration as attributes of collection.
        Type Parameters:
        V - Type of Map values.
        Parameters:
        key - Name of collection to be created.
        attributes - DataStructureAttributes for providing user configuration for this collection.
        options - WriteThruOptions regarding updating the data source. This can be either WriteThru, WriteBehind or None.
        cls - Class of Map values.
        Returns:
        Interface for using dictionary.
        Throws:
        CacheException
      • createHashSet

        <T> DistributedHashSet<T> createHashSet​(java.lang.String key,
                                                java.lang.Class<?> cls)
                                         throws CacheException
        Creates distributed set against the provided collection name.
        Type Parameters:
        T - Type of set items.
        Parameters:
        key - Name of collection to be created.
        cls - Class of set items.
        Returns:
        Interface for using set.
        Throws:
        CacheException
      • createHashSet

        <T> DistributedHashSet<T> createHashSet​(java.lang.String key,
                                                DataStructureAttributes attributes,
                                                WriteThruOptions options,
                                                java.lang.Class<?> cls)
                                         throws CacheException
        Creates distributed set against the provided collection name and configures it according to the provided user configuration as attributes of collection.
        Type Parameters:
        T - Type of set items.
        Parameters:
        key - Name of collection to be created.
        attributes - DataStructureAttributes for providing user configuration for this collection.
        options - WriteThruOptions regarding updating the data source. This can be either WriteThru, WriteBehind or None.
        cls - Class of set items.
        Returns:
        Interface for using set.
        Throws:
        CacheException
      • getList

        <T> DistributedList<T> getList​(java.lang.String key,
                                       java.lang.Class<?> cls)
                                throws CacheException
        Gets distributed list interface against the provided collection name.
        Type Parameters:
        T - Type of list items.
        Parameters:
        key - Name of collection.
        cls - Class of the list items.
        Returns:
        Interface for using list.
        Throws:
        CacheException
      • getList

        <T> DistributedList<T> getList​(java.lang.String key,
                                       ReadThruOptions options,
                                       java.lang.Class<?> cls)
                                throws CacheException
        Gets distributed list interface against the provided collection name.
        Type Parameters:
        T - Type of list items.
        Parameters:
        key - Name of collection.
        options - ReadThruOptions to read from data source. These can be either ReadThru, ReadThruForced or None.
        cls - Class of the list items.
        Returns:
        Interface for using list.
        Throws:
        CacheException
      • getQueue

        <T> DistributedQueue<T> getQueue​(java.lang.String key,
                                         java.lang.Class<?> cls)
                                  throws CacheException
        Gets distributed queue interface against the provided collection name.
        Type Parameters:
        T - Type of queue items.
        Parameters:
        key - Name of collection to be created.
        cls - Class of queue items.
        Returns:
        Interface for using queue.
        Throws:
        CacheException
      • getQueue

        <T> DistributedQueue<T> getQueue​(java.lang.String key,
                                         ReadThruOptions options,
                                         java.lang.Class<?> cls)
                                  throws CacheException
        Gets distributed queue interface against the provided collection name.
        Type Parameters:
        T - Type of queue items.
        Parameters:
        key - Name of collection to be created.
        options - ReadThruOptions to read from data source. These can be either ReadThru, ReadThruForced or None.
        cls - Class of queue items.
        Returns:
        Interface for using queue.
        Throws:
        CacheException
      • getMap

        <V> DistributedMap<java.lang.String,​V> getMap​(java.lang.String key,
                                                            java.lang.Class<?> cls)
                                                     throws CacheException
        Gets distributed Map interface against the provided collection name.
        Type Parameters:
        V - Type of Map values.
        Parameters:
        key - Name of collection.
        cls - Class of Map values.
        Returns:
        Interface for using Map.
        Throws:
        CacheException
      • getMap

        <V> DistributedMap<java.lang.String,​V> getMap​(java.lang.String key,
                                                            ReadThruOptions options,
                                                            java.lang.Class<?> cls)
                                                     throws CacheException
        Gets distributed Map interface against the provided collection name.
        Type Parameters:
        V - Type of Map values.
        Parameters:
        key - Name of collection.
        options - ReadThruOptions to read from data source. These can be either ReadThru, ReadThruForced or None.
        cls - Class of Map values.
        Returns:
        Interface for using Map.
        Throws:
        CacheException
      • getHashSet

        <T> DistributedHashSet<T> getHashSet​(java.lang.String key,
                                             java.lang.Class<?> cls)
                                      throws CacheException
        Gets distributed set interface against the provided collection name.
        Type Parameters:
        T - Type of set items.
        Parameters:
        key - Name of collection.
        cls - Class of set items.
        Returns:
        Interface for using set.
        Throws:
        CacheException
      • getHashSet

        <T> DistributedHashSet<T> getHashSet​(java.lang.String key,
                                             ReadThruOptions options,
                                             java.lang.Class<?> cls)
                                      throws CacheException
        Gets distributed set interface against the provided collection name.
        Type Parameters:
        T - Type of set items.
        Parameters:
        key - Name of collection.
        options - ReadThruOptions to read from data source. These can be either ReadThru, ReadThruForced or None.
        cls - Class of set items.
        Returns:
        Interface for using set.
        Throws:
        CacheException