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()

getKeyFile

public String getKeyFile()

getLocalDiscoveryEnabled

public boolean getLocalDiscoveryEnabled()

getPersistentLocation

public String getPersistentLocation()

Get the persistent data location.

Returns

The persistent data location

getStorageLocation

public String getStorageLocation()

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)

setKeyFile

public Options setKeyFile(String keyFile)

setLocalDiscoveryEnabled

public Options setLocalDiscoveryEnabled(boolean localDiscoveryEnabled)

setPersistentLocation

public Options setPersistentLocation(String persistentLocation)

Set the persistent data location. The location must be set.

Parameters
  • persistentLocation – The persistent data location to set

Returns

The current Options object reference.

setStorageLocation

public Options setStorageLocation(String storageLocation)

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.