Class TarantoolClientConfig

    • Constructor Detail

      • TarantoolClientConfig

        public TarantoolClientConfig()
        Basic constructor.
    • Method Detail

      • getConnectTimeout

        public int getConnectTimeout()
        Get TCP connection timeout, in milliseconds
        Returns:
        a number
      • setConnectTimeout

        public void setConnectTimeout​(int connectTimeout)
        Set TCP connection timeout, in milliseconds
        Parameters:
        connectTimeout - timeout for establishing a connection to Tarantool server
      • getRequestTimeout

        public int getRequestTimeout()
        Get request completion timeout, in milliseconds
        Returns:
        a number
      • setRequestTimeout

        public void setRequestTimeout​(int requestTimeout)
        Set request completion timeout, in milliseconds
        Parameters:
        requestTimeout - timeout for receiving the response for a request to Tarantool server
      • getReadTimeout

        public int getReadTimeout()
        Get socket read timeout, in milliseconds
        Returns:
        a number
      • setReadTimeout

        public void setReadTimeout​(int readTimeout)
        Set socket read timeout, in milliseconds
        Parameters:
        readTimeout - timeout for reading data from a socket, in milliseconds
      • getConnections

        public int getConnections()
        Get number of connections to be established with the target server. Default value is 1
        Returns:
        number of server connections
      • setConnections

        public void setConnections​(int connections)
        Set number of connections to be established with the target server
        Parameters:
        connections - number of server connections
      • setSslContext

        public void setSslContext​(io.netty.handler.ssl.SslContext sslContext)
        Set SslContext for establishing SSL/TLS connection
        Parameters:
        sslContext - SslContext instance
      • getSslContext

        public io.netty.handler.ssl.SslContext getSslContext()
        Get settings for establishing SSL/TLS connection
        Returns:
        a SslContext instance
      • setMessagePackMapper

        public void setMessagePackMapper​(MessagePackMapper messagePackMapper)
        Set mapper between Java objects and MessagePack entities
        Parameters:
        messagePackMapper - MessagePackMapper instance
      • getConnectionSelectionStrategyFactory

        public ConnectionSelectionStrategyFactory getConnectionSelectionStrategyFactory()
        Get factory implementation for collection selection strategy instances
        Returns:
        connection selection strategy factory instance
      • getCursorBatchSize

        public int getCursorBatchSize()
        How many items will be fetched from server per cursor request.
        Returns:
        default size of a batch for a cursor.