类 TokenClientPromiseHolder
java.lang.Object
com.alibaba.csp.sentinel.cluster.client.handler.TokenClientPromiseHolder
- 从以下版本开始:
- 1.4.0
- 作者:
- Eric Zhao
-
方法概要
修饰符和类型方法说明static <T> booleancompletePromise(int xid, com.alibaba.csp.sentinel.cluster.response.ClusterResponse<T> response) static AbstractMap.SimpleEntry<io.netty.channel.ChannelPromise,com.alibaba.csp.sentinel.cluster.response.ClusterResponse> getEntry(int xid) static voidputPromise(int xid, io.netty.channel.ChannelPromise promise) static voidremove(int xid)
-
方法详细资料
-
putPromise
public static void putPromise(int xid, io.netty.channel.ChannelPromise promise) -
getEntry
public static AbstractMap.SimpleEntry<io.netty.channel.ChannelPromise,com.alibaba.csp.sentinel.cluster.response.ClusterResponse> getEntry(int xid) -
remove
public static void remove(int xid) -
completePromise
public static <T> boolean completePromise(int xid, com.alibaba.csp.sentinel.cluster.response.ClusterResponse<T> response)
-