AbstractReadonlybeforeActor that must be registered in the bus before this actor.
ReadonlybusThe bus this actor subscribes to.
ReadonlymediaReadonlymediaReadonlynameThe name for this actor.
ReadonlypriorityProtectedgetOptionaldata: () => anyGet the media type formats of this given actor.
A promise that resolves to the media types.
Get the media type of this given actor.
A promise that resolves to the media types.
ProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => anyProtectedlogOptionaldata: () => 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.
AbstractrunRun 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.
Check 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.
AbstracttestCheck to see if this actor can handle the given action. The media type has already been checked before this is called.
The action to test.
An optional context.
Check if this actor can emit its media types.
A promise that resolves to the media type run result.
Check if this actor can emit its media type formats.
A promise that resolves to the media type run result.
StaticgetGet 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