public class ChainCacheLifeCycle extends Object implements PostProcessChainExecuteLifeCycle
| Modifier and Type | Class and Description |
|---|---|
static class |
ChainCacheLifeCycle.ChainState
Chain 在缓存中状态
|
| Modifier and Type | Method and Description |
|---|---|
com.github.benmanes.caffeine.cache.Cache<String,ChainCacheLifeCycle.ChainState> |
getCache()
获取缓存
|
static ChainCacheLifeCycle |
getLifeCycle()
获取生命周期实例
|
static boolean |
initIfAbsent(int capacity)
初始化生命周期实例
|
void |
postProcessAfterChainExecute(String chainId,
Slot slot) |
void |
postProcessBeforeChainExecute(String chainId,
Slot slot) |
public void postProcessBeforeChainExecute(String chainId, Slot slot)
postProcessBeforeChainExecute in interface PostProcessChainExecuteLifeCyclepublic void postProcessAfterChainExecute(String chainId, Slot slot)
postProcessAfterChainExecute in interface PostProcessChainExecuteLifeCyclepublic com.github.benmanes.caffeine.cache.Cache<String,ChainCacheLifeCycle.ChainState> getCache()
public static boolean initIfAbsent(int capacity)
capacity - 缓存容量public static ChainCacheLifeCycle getLifeCycle()
Copyright © 2025. All rights reserved.