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

com.github.sseserver.local.SseChangeEvent Maven / Gradle / Ivy

package com.github.sseserver.local;

/**
 * 变化事件
 *
 * @author wangzihaogithub 2022-11-12
 */
public class SseChangeEvent {
    public static final String EVENT_ADD_LISTENER = "addListener";
    public static final String EVENT_REMOVE_LISTENER = "removeListener";

    private final SseEmitter instance;
    private final String eventName;
    private final VALUE before;
    private final VALUE after;

    public SseChangeEvent(SseEmitter instance, String eventName, VALUE before, VALUE after) {
        this.instance = instance;
        this.eventName = eventName;
        this.before = before;
        this.after = after;
    }

    public SseEmitter getInstance() {
        return instance;
    }

    public String getEventName() {
        return eventName;
    }

    public VALUE getBefore() {
        return before;
    }

    public VALUE getAfter() {
        return after;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy