BrokerInterface class abstract
The baseclass for all communication interfaces with the S3I-Broker
.
There are two different approaches to receive messages from the Broker:
- ActiveBrokerInterface for interfaces that inform you whenever a new message is available.
- PassiveBrokerInterface for interfaces where you need to explicitly ask if there are new messages.
- Implementers
Constructors
- BrokerInterface.new(AuthenticationManager authManager)
-
Creates a BrokerInterface with the given
authManager
.
Properties
- authManager → AuthenticationManager
-
The authentication manager used by this instance to get
valid access tokens.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
Message message, Set< String> endpoints) → void -
Publishes the given
message
to allendpoints
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
transformJsonToMessage(
Map< String, dynamic> json) → Message -
Returns a new created
Message
with the information stored in thejson
.