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

com.codingapi.springboot.framework.event.DomainEvent Maven / Gradle / Ivy

The newest version!
package com.codingapi.springboot.framework.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Event包装对象
 */
public class DomainEvent extends ApplicationEvent {

    @Getter
    private final IEvent event;
    /**
     * 同步或异步事件
     * true 同步
     * false 异步
     */
    @Getter
    private final boolean sync;

    @Getter
    private final String traceId;


    public DomainEvent(Object source, boolean sync, String traceId) {
        super(source);
        this.event = (IEvent) source;
        this.sync = sync;
        this.traceId = traceId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy