RestrictProcess

s2a.leucine.actors.RestrictProcess

Use this mixin with the RestrictActor to make use of partial functions in the message handling.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

protected object Process

Access object for the user to define the required actions.

Access object for the user to define the required actions.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Process.type
transparent protected trait Redirect

Redirection trait that is instantiated to store the new process call on the stack.

Redirection trait that is instantiated to store the new process call on the stack.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Push
class Replace

Inherited classlikes

sealed protected trait ProcessAction

All user defined process actions are derived from this trait.

All user defined process actions are derived from this trait.

Attributes

Inherited from:
ProcessAid (hidden)
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Clear
class Keep
class Pop
trait StashOps

Attributes

Inherited from:
StashDefs (hidden)
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Stash.type

Types

protected type Process[Sender <: Accept] = PartialFunction[(Letter[Sender], Sender), Receive]

Alias for the partial function type expected for the restrict actor.

Alias for the partial function type expected for the restrict actor.

Attributes

Inherited types

type Accept <: Actor

The upper bound for the collection of all accepted Senders.

The upper bound for the collection of all accepted Senders.

Attributes

Inherited from:
BareDefs (hidden)
type Common <: Accept

The lower bound for the collection of all accepted Senders.

The lower bound for the collection of all accepted Senders.

Attributes

Inherited from:
BareDefs (hidden)
type Receive = State match { case Default.type => Unit case State => State => State }

The Result type for the receive method.

The Result type for the receive method.

Attributes

Inherited from:
BareDefs (hidden)
type State <: State

The super type for the state the actor can be in.

The super type for the state the actor can be in.

Attributes

Inherited from:
BareDefs (hidden)

Value members

Abstract methods

protected def process[Sender <: Accept]: Process[Sender]

This is the first process to be called and must be implemented by the user. The idea is that the user may implement more methods with comparable signature to be able to switch between them.

This is the first process to be called and must be implemented by the user. The idea is that the user may implement more methods with comparable signature to be able to switch between them.

Attributes

Concrete methods

final protected def receive[Sender <: Accept](letter: <none>[Sender], sender: Sender): Receive

The receive method is overridden here and may not be implemented by the user any more.

The receive method is overridden here and may not be implemented by the user any more.

Attributes

Inherited methods

def name: String

The name of this actor.

The name of this actor.

Attributes

Inherited from:
ActorDefs (hidden)
def path: String

The full name of this actor, contains the full path to the first ancestor.

The full name of this actor, contains the full path to the first ancestor.

Attributes

Inherited from:
ActorDefs (hidden)
protected def switch(action: ProcessAction): Unit

Switch the process from one to an other, see the Process object for the correct use.

Switch the process from one to an other, see the Process object for the correct use.

Attributes

Inherited from:
ProcessAid (hidden)