Interface StateMachineContextRepository<S,E,T extends StateMachineContext<S,E>>

Type Parameters:
S - the type of state
E - the type of event
T - The type of state machine context
All Known Implementing Classes:
RedisStateMachineContextRepository

public interface StateMachineContextRepository<S,E,T extends StateMachineContext<S,E>>
Repository interface for saving and retrieving StateMachineContext objects.
Author:
Janne Valkealahti
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the context.
    void
    save(T context, String id)
    Save a context.
  • Method Details

    • save

      void save(T context, String id)
      Save a context.
      Parameters:
      context - the context
      id - the id
    • getContext

      T getContext(String id)
      Gets the context.
      Parameters:
      id - the id
      Returns:
      the context