TransportRepository class abstract
Repository that allows listen for transport changes in application and change it.
- Implementers
Constructors
Properties
- currentTransport → TransportStrategy
-
This returns current transport wrapped with its strategy.
no setter
-
currentTransportStream
→ Stream<
TransportStrategy> -
Stream to listen transport changes wrapped in its strategy.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createGqlTransport(
{required GqlConnectionHttpClient client, required String name, required String group, required List< String> endpoints, required bool local, int? latencyDetectionInterval, int? maxLatency, int? endpointSelectionRetryCount}) → Future<GqlTransport> - This allows create GQL based transport from application.
-
createJrpcTransport(
{required JrpcConnectionHttpClient client, required String name, required String group, required String endpoint}) → Future< JrpcTransport> - This allows create JRPC based transport from application.
-
createProtoTransport(
{required ProtoConnectionHttpClient client, required String name, required String group, required String endpoint}) → Future< ProtoTransport> - This allows create Protobuf based transport from application.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTransport(
TransportStrategy transport) → Future< void> - This method allows change currentTransport and trigger different parts of application to change its state.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited