co.paralleluniverse.actors.behaviors

Class FiniteStateMachineActor

    • Constructor Detail

      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name,
                               Initializer initializer,
                               Strand strand,
                               MailboxConfig mailboxConfig)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
        strand - this actor's strand.
        mailboxConfig - this actor's mailbox settings.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name,
                               Initializer initializer,
                               Strand strand,
                               MailboxConfig mailboxConfig,
                               SuspendableCallable<SuspendableCallable> initialState)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
        strand - this actor's strand.
        mailboxConfig - this actor's mailbox settings.
        initialState - the initial state; will be used instead of calling initialState().
      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name,
                               Initializer initializer,
                               MailboxConfig mailboxConfig)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
        mailboxConfig - this actor's mailbox settings.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name,
                               Initializer initializer)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(Initializer initializer,
                               MailboxConfig mailboxConfig)
        Creates a new FSM actor
        Parameters:
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
        mailboxConfig - this actor's mailbox settings.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(Initializer initializer)
        Creates a new FSM actor
        Parameters:
        initializer - an optional delegate object that will be run upon actor initialization and termination. May be null.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name,
                               MailboxConfig mailboxConfig)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
        mailboxConfig - this actor's mailbox settings.
      • FiniteStateMachineActor

        public FiniteStateMachineActor(String name)
        Creates a new FSM actor
        Parameters:
        name - the actor name (may be null).
      • FiniteStateMachineActor

        public FiniteStateMachineActor(MailboxConfig mailboxConfig)
        Creates a new FSM actor
        Parameters:
        mailboxConfig - this actor's mailbox settings.
      • FiniteStateMachineActor

        public FiniteStateMachineActor()
        Creates a new FSM actor