java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.NetworkConfig
- Record Components:
serverAddress
- **This field is deprecated, but left for backward-compatibility.** DApp Server public address.endpoints
- List of DApp Server addresses. 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.networkRetriesCount
- Deprecated. You must use `network.max_reconnect_timeout` that allows to specify maximum network resolving timeout.maxReconnectTimeout
- Maximum time for sequential reconnections. Must be specified in milliseconds. Default is 120000 (2 min).reconnectTimeout
- DeprecatedmessageRetriesCount
- 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. Default is 5.messageProcessingTimeout
- 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. Must be specified in milliseconds. Default is 40000 (40 sec).waitForTimeout
- Maximum timeout that is used for query response. Must be specified in milliseconds. Default is 40000 (40 sec).outOfSyncThreshold
- Maximum time difference between server and client. 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).
sendingEndpointCount
- Maximum number of randomly chosen endpoints the library uses to broadcast a message. Default is 1.latencyDetectionInterval
- Frequency of sync latency detection. Library periodically checks the current endpoint for blockchain data syncronization 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).
maxLatency
- Maximum value for the endpoint's blockchain data syncronization 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. Must be specified in milliseconds. Default is 60000 (1 min).queryTimeout
- Default timeout for http requests. 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 witherror.Must be specified in milliseconds. Default is 60000 (1 min).
queriesProtocol
- Queries protocol. `HTTP` or `WS`. Default is `HTTP`.firstRempStatusTimeout
- UNSTABLE. First REMP status awaiting timeout. If no status recieved during the timeout than fallback transaction scenario is activated.Must be specified in milliseconds. Default is 1000 (1 sec).
nextRempStatusTimeout
- UNSTABLE. Subsequent REMP status awaiting timeout. If no status recieved during the timeout than fallback transaction scenario is activated.Must be specified in milliseconds. Default is 5000 (5 sec).
accessKey
- Access key to GraphQL API. You can specify here Evercloud project secret ot serialized JWT.
- Enclosing class:
Client
public static record Client.NetworkConfig(String serverAddress, String[] endpoints, Number networkRetriesCount, Number maxReconnectTimeout, Number reconnectTimeout, Number messageRetriesCount, Number messageProcessingTimeout, Number waitForTimeout, Number outOfSyncThreshold, Number sendingEndpointCount, Number latencyDetectionInterval, Number maxLatency, Number queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Number firstRempStatusTimeout, Number nextRempStatusTimeout, String accessKey)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkConfig
(String serverAddress, String[] endpoints, Number networkRetriesCount, Number maxReconnectTimeout, Number reconnectTimeout, Number messageRetriesCount, Number messageProcessingTimeout, Number waitForTimeout, Number outOfSyncThreshold, Number sendingEndpointCount, Number latencyDetectionInterval, Number maxLatency, Number queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Number firstRempStatusTimeout, Number nextRempStatusTimeout, String accessKey) Creates an instance of aNetworkConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessKey
record component.String[]
Returns the value of theendpoints
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstRempStatusTimeout
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelatencyDetectionInterval
record component.Returns the value of themaxLatency
record component.Returns the value of themaxReconnectTimeout
record component.Returns the value of themessageProcessingTimeout
record component.Returns the value of themessageRetriesCount
record component.Deprecated.Returns the value of thenextRempStatusTimeout
record component.Returns the value of theoutOfSyncThreshold
record component.Returns the value of thequeriesProtocol
record component.Returns the value of thequeryTimeout
record component.Deprecated.Returns the value of thesendingEndpointCount
record component.Deprecated.final String
toString()
Returns a string representation of this record class.Returns the value of thewaitForTimeout
record component.
-
Constructor Details
-
NetworkConfig
public NetworkConfig(@Deprecated String serverAddress, String[] endpoints, @Deprecated Number networkRetriesCount, Number maxReconnectTimeout, @Deprecated Number reconnectTimeout, Number messageRetriesCount, Number messageProcessingTimeout, Number waitForTimeout, Number outOfSyncThreshold, Number sendingEndpointCount, Number latencyDetectionInterval, Number maxLatency, Number queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Number firstRempStatusTimeout, Number nextRempStatusTimeout, String accessKey) Creates an instance of aNetworkConfig
record class.- Parameters:
serverAddress
- the value for theserverAddress
record componentendpoints
- the value for theendpoints
record componentnetworkRetriesCount
- the value for thenetworkRetriesCount
record componentmaxReconnectTimeout
- the value for themaxReconnectTimeout
record componentreconnectTimeout
- the value for thereconnectTimeout
record componentmessageRetriesCount
- the value for themessageRetriesCount
record componentmessageProcessingTimeout
- the value for themessageProcessingTimeout
record componentwaitForTimeout
- the value for thewaitForTimeout
record componentoutOfSyncThreshold
- the value for theoutOfSyncThreshold
record componentsendingEndpointCount
- the value for thesendingEndpointCount
record componentlatencyDetectionInterval
- the value for thelatencyDetectionInterval
record componentmaxLatency
- the value for themaxLatency
record componentqueryTimeout
- the value for thequeryTimeout
record componentqueriesProtocol
- the value for thequeriesProtocol
record componentfirstRempStatusTimeout
- the value for thefirstRempStatusTimeout
record componentnextRempStatusTimeout
- the value for thenextRempStatusTimeout
record componentaccessKey
- the value for theaccessKey
record 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
Deprecated.Returns the value of theserverAddress
record component.- Returns:
- the value of the
serverAddress
record component
-
endpoints
Returns the value of theendpoints
record component.- Returns:
- the value of the
endpoints
record component
-
networkRetriesCount
Deprecated.Returns the value of thenetworkRetriesCount
record component.- Returns:
- the value of the
networkRetriesCount
record component
-
maxReconnectTimeout
Returns the value of themaxReconnectTimeout
record component.- Returns:
- the value of the
maxReconnectTimeout
record component
-
reconnectTimeout
Deprecated.Returns the value of thereconnectTimeout
record component.- Returns:
- the value of the
reconnectTimeout
record component
-
messageRetriesCount
Returns the value of themessageRetriesCount
record component.- Returns:
- the value of the
messageRetriesCount
record component
-
messageProcessingTimeout
Returns the value of themessageProcessingTimeout
record component.- Returns:
- the value of the
messageProcessingTimeout
record component
-
waitForTimeout
Returns the value of thewaitForTimeout
record component.- Returns:
- the value of the
waitForTimeout
record component
-
outOfSyncThreshold
Returns the value of theoutOfSyncThreshold
record component.- Returns:
- the value of the
outOfSyncThreshold
record component
-
sendingEndpointCount
Returns the value of thesendingEndpointCount
record component.- Returns:
- the value of the
sendingEndpointCount
record component
-
latencyDetectionInterval
Returns the value of thelatencyDetectionInterval
record component.- Returns:
- the value of the
latencyDetectionInterval
record component
-
maxLatency
Returns the value of themaxLatency
record component.- Returns:
- the value of the
maxLatency
record component
-
queryTimeout
Returns the value of thequeryTimeout
record component.- Returns:
- the value of the
queryTimeout
record component
-
queriesProtocol
Returns the value of thequeriesProtocol
record component.- Returns:
- the value of the
queriesProtocol
record component
-
firstRempStatusTimeout
Returns the value of thefirstRempStatusTimeout
record component.- Returns:
- the value of the
firstRempStatusTimeout
record component
-
nextRempStatusTimeout
Returns the value of thenextRempStatusTimeout
record component.- Returns:
- the value of the
nextRempStatusTimeout
record component
-
accessKey
Returns the value of theaccessKey
record component.- Returns:
- the value of the
accessKey
record component
-