com.binance.connector.client.utils.websocketcallback.WebSocketFailureCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance-connector-java Show documentation
Show all versions of binance-connector-java Show documentation
lightweight connector to API
The newest version!
package com.binance.connector.client.utils.websocketcallback;
import okhttp3.Response;
@FunctionalInterface
public interface WebSocketFailureCallback {
/**
* onFailure will be called when the websocket has been closed and an error has occurred.
*
* @param t The exception thrown by server.
* @param response The associated response.
*/
void onFailure(Throwable t, Response response);
}