MPI class
An annotation used to specify a class to generate code for.
- Annotations
-
- @Target.new({TargetKind.method, TargetKind.field, TargetKind.classType})
Constructors
- MPI({String? name = '', String? version = '0.0.0', String? proto = 'grpc', String? codec = 'json', int? flags = 0, int? timeout = 12000, int? retries = 3, String? idc = '', String? zone = '', String? cluster = '', String? cell = '', String? group = '', String? address = ''})
-
Creates a new MPI instance.
const
Properties
- address → String?
-
Service address.
final
- cell → String?
-
Service cell.
final
- cluster → String?
-
Service cluster.
final
- codec → String?
-
Service codec.
final
- flags → int?
-
Service flag 1 asyncable 2 encrypt 4 communal 8 public.
final
- group → String?
-
Service group.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idc → String?
-
Service node identity.
final
- name → String?
-
Service name. {@link MPS#name()}
final
- proto → String?
-
Service net/io protocol.
final
- retries → int?
-
Invoke retry times.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → int?
-
Service invoke timeout. millions.
final
- version → String?
-
Service version. {@link MPS#version()}
final
- zone → String?
-
Service zone.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited