Interface IProcessingUnitContext

  • All Known Implementing Classes:
    ProcessingUnitContext

    public interface IProcessingUnitContext
    Defines the processing unit context
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears the context
      java.lang.String get​(java.lang.String key)
      Get a context value of a defined key
      boolean hasKey​(java.lang.String key)
      Test if a key is defined or not
      boolean isEmpty()
      Check if the statistic if empty
      java.util.Set<java.lang.String> keySet()
      Gets a set of the context keys back.
      java.lang.String remove​(java.lang.String key)
      Removes a key in the context and return the removed value.
      java.lang.String set​(java.lang.String key, java.lang.String value)
      Set a context key / value pair
    • Method Detail

      • set

        java.lang.String set​(java.lang.String key,
                             java.lang.String value)
        Set a context key / value pair
        Parameters:
        key - the key
        value - the value
        Returns:
        the previous value or null
      • get

        java.lang.String get​(java.lang.String key)
        Get a context value of a defined key
        Parameters:
        key - the key
        Returns:
        the value
      • hasKey

        boolean hasKey​(java.lang.String key)
        Test if a key is defined or not
        Parameters:
        key - the key
        Returns:
        true if it exist
      • remove

        java.lang.String remove​(java.lang.String key)
        Removes a key in the context and return the removed value. In case the key don't exist it returns null.
        Parameters:
        key - the key
        Returns:
        the value
      • keySet

        java.util.Set<java.lang.String> keySet()
        Gets a set of the context keys back.
        Returns:
        the keys
      • isEmpty

        boolean isEmpty()
        Check if the statistic if empty
        Returns:
        true if it is empty
      • clear

        void clear()
        Clears the context