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

cn.lastwhisper.trace.event.CascadeEventPublisher Maven / Gradle / Ivy

The newest version!
package cn.lastwhisper.trace.event;

import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;

import java.util.List;

/**
 *  事件消息推送者
 * @author lastwhisper
 * @date 2020/4/8
 */
public class CascadeEventPublisher implements ApplicationEventPublisherAware {

    private ApplicationEventPublisher publisher;

    @Override
    public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
        publisher = applicationEventPublisher;
    }

    public void sendRemoveMessage(List buffers) {
        publisher.publishEvent(new CascadeEvent(this, buffers));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy