Record Class Client.NetworkConfig

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.evercloud.dev/products/evercloud/networks-endpoints). 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 - Deprecated
messageRetriesCount - 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 - **DEPRECATED**: This parameter was deprecated.
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, Long maxReconnectTimeout, Long reconnectTimeout, Integer messageRetriesCount, Long messageProcessingTimeout, Long waitForTimeout, Long outOfSyncThreshold, Integer sendingEndpointCount, Long latencyDetectionInterval, Long maxLatency, Long queryTimeout, Client.NetworkQueriesProtocol queriesProtocol, Long firstRempStatusTimeout, Long nextRempStatusTimeout, Long signatureId, String accessKey) extends Record
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serverAddress

      public String serverAddress()
      Returns the value of the serverAddress record component.
      Returns:
      the value of the serverAddress record component
    • endpoints

      public String[] endpoints()
      Returns the value of the endpoints record component.
      Returns:
      the value of the endpoints record component
    • networkRetriesCount

      public Integer networkRetriesCount()
      Returns the value of the networkRetriesCount record component.
      Returns:
      the value of the networkRetriesCount record component
    • maxReconnectTimeout

      public Long maxReconnectTimeout()
      Returns the value of the maxReconnectTimeout record component.
      Returns:
      the value of the maxReconnectTimeout record component
    • reconnectTimeout

      public Long reconnectTimeout()
      Returns the value of the reconnectTimeout record component.
      Returns:
      the value of the reconnectTimeout record component
    • messageRetriesCount

      public Integer messageRetriesCount()
      Returns the value of the messageRetriesCount record component.
      Returns:
      the value of the messageRetriesCount record component
    • messageProcessingTimeout

      public Long messageProcessingTimeout()
      Returns the value of the messageProcessingTimeout record component.
      Returns:
      the value of the messageProcessingTimeout record component
    • waitForTimeout

      public Long waitForTimeout()
      Returns the value of the waitForTimeout record component.
      Returns:
      the value of the waitForTimeout record component
    • outOfSyncThreshold

      public Long outOfSyncThreshold()
      Returns the value of the outOfSyncThreshold record component.
      Returns:
      the value of the outOfSyncThreshold record component
    • sendingEndpointCount

      public Integer sendingEndpointCount()
      Returns the value of the sendingEndpointCount record component.
      Returns:
      the value of the sendingEndpointCount record component
    • latencyDetectionInterval

      public Long latencyDetectionInterval()
      Returns the value of the latencyDetectionInterval record component.
      Returns:
      the value of the latencyDetectionInterval record component
    • maxLatency

      public Long maxLatency()
      Returns the value of the maxLatency record component.
      Returns:
      the value of the maxLatency record component
    • queryTimeout

      public Long queryTimeout()
      Returns the value of the queryTimeout record component.
      Returns:
      the value of the queryTimeout record component
    • queriesProtocol

      public Client.NetworkQueriesProtocol queriesProtocol()
      Returns the value of the queriesProtocol record component.
      Returns:
      the value of the queriesProtocol record component
    • firstRempStatusTimeout

      public Long firstRempStatusTimeout()
      Returns the value of the firstRempStatusTimeout record component.
      Returns:
      the value of the firstRempStatusTimeout record component
    • nextRempStatusTimeout

      public Long nextRempStatusTimeout()
      Returns the value of the nextRempStatusTimeout record component.
      Returns:
      the value of the nextRempStatusTimeout record component
    • signatureId

      public Long signatureId()
      Returns the value of the signatureId record component.
      Returns:
      the value of the signatureId record component
    • accessKey

      public String accessKey()
      Returns the value of the accessKey record component.
      Returns:
      the value of the accessKey record component