INotifiable class
Interface for components that can be asynchronously notified. The notification may include optional argument that describe the occured event.
See Notifier See IExecutable
Example
class MyComponent implements INotifable {
...
void notify(String correlationId, Parameters args) {
console.log("Occured event " + args.getAsString("event"));
}
}
var myComponent = new MyComponent();
myComponent.notify("123", Parameters.fromTuples("event", "Test Event"));
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
notify(
String correlationId, Parameters args) → void -
- Notifies the component about occured event.
-
- correlationId (optional) transaction id to trace execution through call chain.
-
- args notification arguments.
- Notifies the component about occured event.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited