forked from fanruan/finekit
Dylan.Liu
5 years ago
6 changed files with 45 additions and 6 deletions
@ -0,0 +1,20 @@
|
||||
package com.fanruan.api.cluster.state; |
||||
|
||||
import com.fr.collections.config.CollectionsConfig; |
||||
import com.fr.store.impl.accessor.api.AbstractFineStoreGenericPool; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2020/4/26 |
||||
* 供插件使用 |
||||
* 设置资源连接池, 注册实际资源 |
||||
*/ |
||||
public abstract class BaseFineStoreGenericPool<T> extends AbstractFineStoreGenericPool<T> { |
||||
|
||||
@Override |
||||
public abstract boolean accept(CollectionsConfig config); |
||||
|
||||
@Override |
||||
public abstract BaseFineStoreWrapper refresh(T redisConfig); |
||||
} |
@ -0,0 +1,19 @@
|
||||
package com.fanruan.api.cluster.state; |
||||
|
||||
|
||||
import com.fr.store.impl.accessor.api.FineStoreAdapter; |
||||
import com.fr.store.impl.accessor.api.FineStoreWrapper; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2020/4/26 |
||||
* 供插件使用的资源包装器 |
||||
*/ |
||||
public abstract class BaseFineStoreWrapper implements FineStoreWrapper { |
||||
@Override |
||||
public abstract FineStoreAdapter getResource(); |
||||
|
||||
@Override |
||||
public abstract void destroy(); |
||||
} |
Loading…
Reference in new issue