Class ContextImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ContextImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Context add​(java.lang.String key, java.lang.Object value)
      Puts a new key - value pair to the context.
      void commit​(java.lang.String status)  
      void empty()
      Empties the context.
      <T> java.util.Optional<T> get​(java.lang.String key)
      Reclaims the object from the context.
      boolean isEmpty()
      Checks whether the context is empty.
      void notify​(long time)  
      void register​(Measurement measurement)  
      void remove​(Measurement measurement)  
      • Methods inherited from class java.lang.Object

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

      • ContextImpl

        public ContextImpl()
    • Method Detail

      • add

        public Context add​(java.lang.String key,
                           java.lang.Object value)
        Description copied from interface: Context
        Puts a new key - value pair to the context.
        Specified by:
        add in interface Context
        Parameters:
        key - Key value.
        value - Value to store.
      • get

        public <T> java.util.Optional<T> get​(java.lang.String key)
        Description copied from interface: Context
        Reclaims the object from the context.
        Specified by:
        get in interface Context
        Type Parameters:
        T - The value stored in the context of type T
        Parameters:
        key - The key value.
        Returns:
        An Optional instance of T.
      • empty

        public void empty()
        Description copied from interface: Context
        Empties the context.
        Specified by:
        empty in interface Context
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Context
        Checks whether the context is empty.

        Specified by:
        isEmpty in interface Context
        Returns:
        true if the context is empty.
      • notify

        public void notify​(long time)
        Specified by:
        notify in interface Context
      • commit

        public void commit​(java.lang.String status)
        Specified by:
        commit in interface Context