Class CallOptions
java.lang.Object
services.moleculer.context.CallOptions
Calling options (timeout, target nodeID, number of retries). Usage:
broker.call("math.add", "a", 3, "b", 5,
CallOptions.nodeID("node-2")).then(in -> {
...
});
You can enumerate options in builder style:
CallOptions.nodeID("node-2").timeout(500).retryCount(3);
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CallOptions.Optionsstatic CallOptions.OptionsretryCount(int retryCount) static CallOptions.Optionstimeout(long timeoutMillis)
-
Constructor Details
-
CallOptions
protected CallOptions()
-
-
Method Details
-
nodeID
-
timeout
-
retryCount
-