Carrier.Options¶
-
public static class
Options¶ Options defines several settings that control the way the Carrier node connects to the carrier network. Default values are not defined for bootstraps options, so application should be set bootstrap nodes clearly.
Methods¶
getBootstrapNodes¶
-
public List<BootstrapNode>
getBootstrapNodes()¶
getPersistentLocation¶
getUdpEnabled¶
-
public boolean
getUdpEnabled()¶ Get the udp transport used or not.
- Returns
The value of enable/dsiable udp transport.
setBootstrapNodes¶
-
public Options
setBootstrapNodes(List<BootstrapNode> bootstrapNodes)¶
setPersistentLocation¶
setUdpEnabled¶
-
public Options
setUdpEnabled(boolean udpEnabled)¶ Set to use udp transport or not. Setting this value to false will force carrier node to TCP only, which will potentially slow down the message to run through.
- Parameters
udpEnabled – flag to enable or disable udp transport.
- Returns
The current options object reference.