1
zyy
20 hours ago 4fefff17528a878d345ff3311c297a66a671b8d6
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);
}