Abstract
The input type of an actor.
The test type of an actor.
The output type of an actor.
The test side data type.
Protected
constructorAll enumerable properties from the args
object are inherited to this actor.
The actor will subscribe to the given bus when this constructor is called.
Arguments object
Optional
beforeActors?: Actor<I, T, O, TS>[]Actor that must be registered in the bus before this actor.
The bus this actor subscribes to.
Optional
busFailMessage?: stringThe message that will be configured in the bus for reporting failures.
This message may be a template string that contains references to the executed action
.
For example, the following templated string is allowed:
"RDF dereferencing failed: no actors could handle ${action.handle.mediaType}"
The name for this actor.
Readonly
beforeActor that must be registered in the bus before this actor.
Readonly
busThe bus this actor subscribes to.
Readonly
nameThe name for this actor.
Protected
getOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyAbstract
runAbstract
testCheck if this actor can run the given action, without actually running it.
The action to test.
A promise that resolves to the test result.
Static
getGet the logger from the given context.
An optional context.
The logger or undefined.
An actor can act on messages of certain types and provide output of a certain type.
The flow of an actor is as follows:
An actor is typically subscribed to a bus, using which the applicability to an action can be tested.
See
Bus