Class MapOptions<K,​V>

  • Type Parameters:
    K - key type
    V - value type
    Direct Known Subclasses:
    LocalCachedMapOptions

    public class MapOptions<K,​V>
    extends Object
    Configuration for Map object.
    Author:
    Nikita Koksharov
    • Constructor Detail

      • MapOptions

        protected MapOptions()
      • MapOptions

        protected MapOptions​(MapOptions<K,​V> copy)
    • Method Detail

      • defaults

        public static <K,​V> MapOptions<K,​V> defaults()
        Creates a new instance of MapOptions with default options.

        This is equivalent to:

             new MapOptions()
              .writer(null, null).loader(null);
         
        Type Parameters:
        K - key type
        V - value type
        Returns:
        MapOptions instance
      • writeBehindThreads

        public MapOptions<K,​V> writeBehindThreads​(int writeBehindThreads)
        Sets threads amount used in write behind mode.

        Default is 1

        Parameters:
        writeBehindThreads - - threads amount
        Returns:
        MapOptions instance
      • getWriteBehindThreads

        public int getWriteBehindThreads()