GrpcMessageResolver class

The GrpcMessageResolver class is the gRPC implementation of the MessagesResolver class.

Constructors

GrpcMessageResolver(ApplicationConfig config, List<Service> services)
The GrpcMessageResolver constructor is used to create a new instance of the MessagesResolver class.

Properties

config → ApplicationConfig
The config property contains the application configuration.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
resolvedAlready bool
The resolvedAlready property is used to check if the routes have been resolved already.
getter/setter pair
resolvedMessageRoutes Map<String, GrpcRouteContext>
The resolvedMessageRoutes property contains the resolved message routes of the application.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services List<Service>
The services property contains the list of gRPC services registered in the server.
final

Methods

handleEvent(MessagePacket packet, TransportAdapter<dynamic, TransportOptions> adapter) Future<void>
Handle an incoming event packet. It does not return a response packet.
handleMessage(MessagePacket packet, TransportAdapter<dynamic, TransportOptions> adapter) Future<ResponsePacket?>
Handle an incoming message packet and return a response packet if applicable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve() → void
Resolve the incoming message packet.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited