zyy
2025-12-02 8372d9b574a34b42ec5e873256c2b0c676e734d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.yami.trading.huobi.websocket.utils;
 
 
/**
 * The interface for define asynchronous invoking callback.<br> If you want to ues the asynchronous
 * invoking, you must implement the ResponseCallback yourself. <br> The onResponse method is
 * mandatory, when the asynchronous invoking completed, this method will be called.<br> You should
 * check the AsyncResult to know whether the asynchronous invoking is successful or not, and get the
 * response data from AsyncResult.
 */
@FunctionalInterface
public interface ResponseCallback<T> {
 
  /**
   * Be called when the request successful.
   *
   */
  void onResponse(T response);
}