Class SimpleMapServiceImpl<K,​V>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      void clear()
      Clears map.
      void execute()
      V get​(K key)
      Gets value based on key.
      void init()
      void put​(K key, V val)
      Puts key-value pair into map.
      int size()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleMapServiceImpl

        public SimpleMapServiceImpl()
    • Method Detail

      • put

        public void put​(K key,
                        V val)
        Puts key-value pair into map.
        Specified by:
        put in interface SimpleMapService<K,​V>
        Parameters:
        key - Key.
        val - Value.
      • get

        public V get​(K key)
        Gets value based on key.
        Specified by:
        get in interface SimpleMapService<K,​V>
        Parameters:
        key - Key.
        Returns:
        Value.
      • cancel

        public void cancel()
        Specified by:
        cancel in interface Service
      • init

        public void init()
        Specified by:
        init in interface Service
      • execute

        public void execute()
                     throws java.lang.Exception
        Specified by:
        execute in interface Service
        Throws:
        java.lang.Exception