Abstract
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: () => anyAbstract
getGet the media type formats of this given actor.
An optional context.
A promise that resolves to the media types.
Abstract
getGet the media type of this given actor.
An optional context.
A promise that resolves to the media types.
Protected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyProtected
logOptional
data: () => anyRun the given action on this actor.
In most cases, this method should not be called directly. Instead, #runObservable should be called.
The action to run.
A promise that resolves to the run result.
Abstract
runRun the given handle action on this actor.
The handle action to run.
The media type to run with.
An optional context.
A promise that resolves to the handle run result.
Run the given action on this actor AND invokes the Bus#onRun method.
The action to run.
A promise that resolves to the run result.
Check if this actor can run the given action, without actually running it.
The action to test.
A promise that resolves to the test result.
Abstract
testCheck if this actor can run the given handle action, without actually running it.
The handle action to test.
The media type to test.
An optional context.
A promise that resolves to the handle test result.
Abstract
testCheck if this actor can emit its media types.
An optional context.
A promise that resolves to the media type run result.
Abstract
testCheck if this actor can emit its media type formats.
An optional context.
A promise that resolves to the media type run result.
Static
getGet the logger from the given context.
An optional context.
The logger or undefined.
An abstract actor that handles media-typed actions.
It splits up a action between a 'handle' and a 'mediaTypes' action. A 'mediaTypes' action is used to retrieve the available media types from this actor. A 'handle' action is abstract, and can be implemented to do anything, such as parsing, serializing, etc.
See