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

io.split.engine.sse.dtos.IncomingNotification Maven / Gradle / Ivy

package io.split.engine.sse.dtos;

import io.split.engine.sse.NotificationProcessor;

public abstract class IncomingNotification {
    public enum Type {
        SPLIT_UPDATE,
        SPLIT_KILL,
        SEGMENT_UPDATE,
        CONTROL,
        OCCUPANCY
    }

    private final Type type;
    private final String channel;

    public IncomingNotification(Type type, String channel) {
        this.type = type;
        this.channel = channel;
    }

    public String getChannel() {
        return channel;
    }

    public Type getType() {
        return type;
    }

    public abstract void handler(NotificationProcessor notificationProcessor);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy