Class Suas.Builder

  • Enclosing class:
    Suas


    public static class Suas.Builder
    extends java.lang.Object
    Fluent API for creating a Store.
    • Method Detail

      • withInitialState

        public Suas.Builder withInitialState(State state)
        Configure the Store with a non empty State
        Parameters:
        state - an initial state
        Returns:
        a instance of Suas.Builder for further configuration
      • withExecutor

        public Suas.Builder withExecutor(java.util.concurrent.Executor executor)
        Configure the Store with a non empty Executor
        Parameters:
        executor - an implemented executor
        Returns:
        a instance of Suas.Builder for further configuration
      • build

        public Store build()
        Creates an instance Store with the provided options.
        Returns:
        a new Store