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

in.hocg.boot.mybatis.plus.extensions.httplog.service.HttpLogMpeService Maven / Gradle / Ivy

There is a newer version: 1.0.63
Show newest version
package in.hocg.boot.mybatis.plus.extensions.httplog.service;

import in.hocg.boot.mybatis.plus.autoconfiguration.core.struct.basic.AbstractService;
import in.hocg.boot.mybatis.plus.extensions.httplog.entity.HttpLog;
import in.hocg.boot.mybatis.plus.extensions.httplog.pojo.ro.CreateLogRo;
import in.hocg.boot.mybatis.plus.extensions.httplog.pojo.ro.DoneLogRo;
import in.hocg.boot.utils.utils.LogUtils;
import org.springframework.scheduling.annotation.Async;

import java.io.Serializable;
import java.util.concurrent.Future;

/**
 * Created by hocgin on 2022/3/24
 * email: [email protected]
 *
 * @author hocgin
 */
public interface HttpLogMpeService extends AbstractService {
    /**
     * 异步创建日志
     *
     * @param ro
     * @return
     */
    @Async
    Future asyncCreate(CreateLogRo ro);

    Serializable create(CreateLogRo ro);

    /**
     * 异步完成日志
     *
     * @param ro
     */
    @Async
    void asyncDone(DoneLogRo ro);

    @Async
    void asyncDone(Serializable id, LogUtils.LogStatus logStatus, String body);

    @Async
    void asyncFail(Serializable id, Object result);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy