All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kould.strategy.Strategy Maven / Gradle / Ivy

package com.kould.strategy;

import com.kould.manager.IBaseCacheManager;
import com.kould.entity.KacheMessage;
import com.kould.entity.MethodPoint;

//负责缓存删除/更新处理与缓存存活时间策略
public abstract class Strategy {

    public Strategy(IBaseCacheManager baseCacheManager) {
        this.baseCacheManager = baseCacheManager;
    }

    protected IBaseCacheManager baseCacheManager;

    public abstract Object delete(MethodPoint point, KacheMessage serviceMessage) throws Exception;
    public abstract Object update(MethodPoint point, KacheMessage serviceMessage) throws Exception;
    public abstract Object insert(MethodPoint point, KacheMessage serviceMessage) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy