java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.NetworkConfig
- Record Components:
serverAddress- **This field is deprecated, but left for backward-compatibility.** Evernode endpoint.endpoints- Any correct URL format can be specified, including IP addresses. This parameter is prevailing over `server_address`. Check the full list of [supported network endpoints](https://docs.everos.dev/ever-sdk/reference/ever-os-api/networks). List of Evernode endpoints.networkRetriesCount- You must use `network.max_reconnect_timeout` that allows to specify maximum network resolving timeout. Deprecated.maxReconnectTimeout- Must be specified in milliseconds. Default is 120000 (2 min). Maximum time for sequential reconnections.reconnectTimeout- DeprecatedmessageRetriesCount- Default is 5. The number of automatic message processing retries that SDK performs in case of `Message Expired (507)` error - but only for those messages which local emulation was successful or failed with replay protection error.messageProcessingTimeout- Must be specified in milliseconds. Default is 40000 (40 sec). Timeout that is used to process message delivery for the contracts which ABI does not include "expire" header. If the message is not delivered within the specified timeout the appropriate error occurs.waitForTimeout- Must be specified in milliseconds. Default is 40000 (40 sec). Maximum timeout that is used for query response.outOfSyncThreshold- If client's device time is out of sync and difference is more than the threshold then error will occur. Also an error will occur if the specified threshold is more than `message_processing_timeout/2`. Must be specified in milliseconds. Default is 15000 (15 sec). Maximum time difference between server and client.sendingEndpointCount- Default is 1. Maximum number of randomly chosen endpoints the library uses to broadcast a message.latencyDetectionInterval- Library periodically checks the current endpoint for blockchain data synchronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint. Must be specified in milliseconds. Default is 60000 (1 min). Frequency of sync latency detection.maxLatency- Must be specified in milliseconds. Default is 60000 (1 min). Maximum value for the endpoint's blockchain data synchronization latency (time-lag). Library periodically checks the current endpoint for blockchain data synchronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint.queryTimeout- Is is used when no timeout specified for the request to limit the answer waiting time. If no answer received during the timeout requests ends with error. Must be specified in milliseconds. Default is 60000 (1 min). Default timeout for http requests.queriesProtocol- `HTTP` or `WS`. Default is `HTTP`. Queries protocol.firstRempStatusTimeout- First REMP status awaiting timeout. If no status received during the timeout than fallback transaction scenario is activated. Must be specified in milliseconds. Default is 1 (1 ms) in order to start fallback scenario together with REMP statuses processing while REMP is not properly tuned yet. UNSTABLE.nextRempStatusTimeout- Subsequent REMP status awaiting timeout. If no status received during the timeout than fallback transaction scenario is activated. Must be specified in milliseconds. Default is 5000 (5 sec). UNSTABLE.signatureId- This parameter should be set to `global_id` field from any blockchain block if network can not be reachable at the moment of message encoding and the message is aimed to be sent into network with `CapSignatureWithId` enabled. Otherwise signature ID is detected automatically inside message encoding functions Network signature ID which is used by VM in signature verifying instructions if capability `CapSignatureWithId` is enabled in blockchain configuration parameters.accessKey- Access key to GraphQL API (Project secret)
- Enclosing class:
Client
public static record Client.NetworkConfig(String serverAddress, String[] endpoints, Integer networkRetriesCount, Integer maxReconnectTimeout, Integer reconnectTimeout, Integer messageRetriesCount, Integer messageProcessingTimeout, Integer waitForTimeout, Integer outOfSyncThreshold, Integer sendingEndpointCount, Integer latencyDetectionInterval, Integer maxLatency, Integer queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Integer firstRempStatusTimeout, Integer nextRempStatusTimeout, Integer signatureId, String accessKey)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkConfig(String serverAddress, String[] endpoints, Integer networkRetriesCount, Integer maxReconnectTimeout, Integer reconnectTimeout, Integer messageRetriesCount, Integer messageProcessingTimeout, Integer waitForTimeout, Integer outOfSyncThreshold, Integer sendingEndpointCount, Integer latencyDetectionInterval, Integer maxLatency, Integer queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Integer firstRempStatusTimeout, Integer nextRempStatusTimeout, Integer signatureId, String accessKey) Creates an instance of aNetworkConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessKeyrecord component.String[]Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstRempStatusTimeoutrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelatencyDetectionIntervalrecord component.Returns the value of themaxLatencyrecord component.Returns the value of themaxReconnectTimeoutrecord component.Returns the value of themessageProcessingTimeoutrecord component.Returns the value of themessageRetriesCountrecord component.Returns the value of thenetworkRetriesCountrecord component.Returns the value of thenextRempStatusTimeoutrecord component.Returns the value of theoutOfSyncThresholdrecord component.Returns the value of thequeriesProtocolrecord component.Returns the value of thequeryTimeoutrecord component.Returns the value of thereconnectTimeoutrecord component.Returns the value of thesendingEndpointCountrecord component.Returns the value of theserverAddressrecord component.Returns the value of thesignatureIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewaitForTimeoutrecord component.
-
Constructor Details
-
NetworkConfig
public NetworkConfig(String serverAddress, String[] endpoints, Integer networkRetriesCount, Integer maxReconnectTimeout, Integer reconnectTimeout, Integer messageRetriesCount, Integer messageProcessingTimeout, Integer waitForTimeout, Integer outOfSyncThreshold, Integer sendingEndpointCount, Integer latencyDetectionInterval, Integer maxLatency, Integer queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Integer firstRempStatusTimeout, Integer nextRempStatusTimeout, Integer signatureId, String accessKey) Creates an instance of aNetworkConfigrecord class.- Parameters:
serverAddress- the value for theserverAddressrecord componentendpoints- the value for theendpointsrecord componentnetworkRetriesCount- the value for thenetworkRetriesCountrecord componentmaxReconnectTimeout- the value for themaxReconnectTimeoutrecord componentreconnectTimeout- the value for thereconnectTimeoutrecord componentmessageRetriesCount- the value for themessageRetriesCountrecord componentmessageProcessingTimeout- the value for themessageProcessingTimeoutrecord componentwaitForTimeout- the value for thewaitForTimeoutrecord componentoutOfSyncThreshold- the value for theoutOfSyncThresholdrecord componentsendingEndpointCount- the value for thesendingEndpointCountrecord componentlatencyDetectionInterval- the value for thelatencyDetectionIntervalrecord componentmaxLatency- the value for themaxLatencyrecord componentqueryTimeout- the value for thequeryTimeoutrecord componentqueriesProtocol- the value for thequeriesProtocolrecord componentfirstRempStatusTimeout- the value for thefirstRempStatusTimeoutrecord componentnextRempStatusTimeout- the value for thenextRempStatusTimeoutrecord componentsignatureId- the value for thesignatureIdrecord componentaccessKey- the value for theaccessKeyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
serverAddress
Returns the value of theserverAddressrecord component.- Returns:
- the value of the
serverAddressrecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-
networkRetriesCount
Returns the value of thenetworkRetriesCountrecord component.- Returns:
- the value of the
networkRetriesCountrecord component
-
maxReconnectTimeout
Returns the value of themaxReconnectTimeoutrecord component.- Returns:
- the value of the
maxReconnectTimeoutrecord component
-
reconnectTimeout
Returns the value of thereconnectTimeoutrecord component.- Returns:
- the value of the
reconnectTimeoutrecord component
-
messageRetriesCount
Returns the value of themessageRetriesCountrecord component.- Returns:
- the value of the
messageRetriesCountrecord component
-
messageProcessingTimeout
Returns the value of themessageProcessingTimeoutrecord component.- Returns:
- the value of the
messageProcessingTimeoutrecord component
-
waitForTimeout
Returns the value of thewaitForTimeoutrecord component.- Returns:
- the value of the
waitForTimeoutrecord component
-
outOfSyncThreshold
Returns the value of theoutOfSyncThresholdrecord component.- Returns:
- the value of the
outOfSyncThresholdrecord component
-
sendingEndpointCount
Returns the value of thesendingEndpointCountrecord component.- Returns:
- the value of the
sendingEndpointCountrecord component
-
latencyDetectionInterval
Returns the value of thelatencyDetectionIntervalrecord component.- Returns:
- the value of the
latencyDetectionIntervalrecord component
-
maxLatency
Returns the value of themaxLatencyrecord component.- Returns:
- the value of the
maxLatencyrecord component
-
queryTimeout
Returns the value of thequeryTimeoutrecord component.- Returns:
- the value of the
queryTimeoutrecord component
-
queriesProtocol
Returns the value of thequeriesProtocolrecord component.- Returns:
- the value of the
queriesProtocolrecord component
-
firstRempStatusTimeout
Returns the value of thefirstRempStatusTimeoutrecord component.- Returns:
- the value of the
firstRempStatusTimeoutrecord component
-
nextRempStatusTimeout
Returns the value of thenextRempStatusTimeoutrecord component.- Returns:
- the value of the
nextRempStatusTimeoutrecord component
-
signatureId
Returns the value of thesignatureIdrecord component.- Returns:
- the value of the
signatureIdrecord component
-
accessKey
Returns the value of theaccessKeyrecord component.- Returns:
- the value of the
accessKeyrecord component
-