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

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

There is a newer version: 3.3.12
Show 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;

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy