Package com.bybit.api.client.restApi
Interface BybitApiCallback<T>
-
- Type Parameters:
T- the return type from the callback
public interface BybitApiCallback<T>BybitApiCallback is a functional interface used together with the BybitApiAsyncClient to provide a non-blocking REST client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidonFailure(Throwable cause)Called whenever an error occurs.voidonResponse(T response)Called whenever a response comes back from the Bybit API.
-