All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tarantool.SocketChannelProvider Maven / Gradle / Ivy

There is a newer version: 1.9.4
Show newest version
package org.tarantool;


import java.nio.channels.SocketChannel;

public interface SocketChannelProvider {
    /**
     * Provides socket channel to init restore connection.
     * You could change hosts on fail and sleep between retries in this method
     * @param retryNumber number of current retry. Reset after successful connect.
     * @param lastError   the last error occurs when reconnecting
     * @return the result of SocketChannel open(SocketAddress remote) call
     */
    SocketChannel get(int retryNumber, Throwable lastError);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy