java.lang.Object
com.alibaba.csp.sentinel.cluster.flow.statistic.concurrent.expire.RegularExpireStrategy
所有已实现的接口:
ExpireStrategy

public class RegularExpireStrategy extends Object implements ExpireStrategy
We need to consider the situation that the token client goes offline or the resource call times out. It can be detected by sourceTimeout and clientTimeout. The resource calls timeout detection is triggered on the token client. If the resource is called over time, the token client will request the token server to release token or refresh the token. The client offline detection is triggered on the token server. If the offline detection time is exceeded, token server will trigger the detection token client’s status. If the token client is offline, token server will delete the corresponding tokenId. If it is not offline, token server will continue to save it.
作者:
yunfeiyanggzq
  • 构造器详细资料

    • RegularExpireStrategy

      public RegularExpireStrategy(com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap<Long,TokenCacheNode> localCache)
  • 方法详细资料