Class Client.NetworkConfig

java.lang.Object
tech.deplant.java4ever.binding.json.JsonData
tech.deplant.java4ever.binding.Client.NetworkConfig
Enclosing class:
Client

public static class Client.NetworkConfig extends JsonData
  • Constructor Details

    • NetworkConfig

      public NetworkConfig()
  • Method Details

    • serverAddress

      public Optional<String> serverAddress()
      DApp Server public address. For instance, for `net.ton.dev/graphql` GraphQL endpoint the server address will be net.ton.dev
    • endpoints

      public Optional<String[]> endpoints()
      List of DApp Server addresses.
    • networkRetriesCount

      @Deprecated public Optional<Number> networkRetriesCount()
      Deprecated.
      Deprecated.
    • maxReconnectTimeout

      public Optional<Number> maxReconnectTimeout()
      Maximum time for sequential reconnections.
    • reconnectTimeout

      @Deprecated public Optional<Number> reconnectTimeout()
      Deprecated.
      Deprecated
    • messageRetriesCount

      public Optional<Number> messageRetriesCount()
      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

      public Optional<Number> 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.
    • waitForTimeout

      public Optional<Number> waitForTimeout()
      Maximum timeout that is used for query response.
    • outOfSyncThreshold

      public Optional<Number> outOfSyncThreshold()
      Maximum time difference between server and client.
    • sendingEndpointCount

      public Optional<Number> sendingEndpointCount()
      Maximum number of randomly chosen endpoints the library uses to broadcast a message.
    • latencyDetectionInterval

      public Optional<Number> latencyDetectionInterval()
      Frequency of sync latency detection.
    • maxLatency

      public Optional<Number> 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.
    • queryTimeout

      public Optional<Number> queryTimeout()
      Default timeout for http requests.
    • accessKey

      public Optional<String> accessKey()
      Access key to GraphQL API.