Interface Context<T>

    • Method Detail

      • name

        String name()
        The name of the context.
        Returns:
        name of the context
      • isSystem

        default boolean isSystem()
      • getData

        T getData()
        The current view of the context data.
        Returns:
        current view of the context data
      • update

        CompletionStage<?> update​(Map<String,​Object> delta)
        Update context data with specified delta.
        Parameters:
        delta - a map with context fields to be updated/removed.
        Returns:
        stage that is completed when context is updated, never null
        Since:
        1.2
      • updatePaths

        CompletionStage<?> updatePaths​(Map<String,​Object> deltaPaths)
        Update context data with specified delta. Allows you to use "paths" in the structure to update/remove nested properties.
        Parameters:
        deltaPaths - a map with context paths to be updated/removed.
        Returns:
        stage that is completed when context is updated, never null
        Since:
        1.3.9
      • reset

        CompletionStage<T> reset​(T value)
        Reset context data with specified value.
        Parameters:
        value - new context value
        Returns:
        stage that is completed when context is reset, never null