
com.joe.easysocket.server.common.spi.NodeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of socket-common Show documentation
Show all versions of socket-common Show documentation
socket框架,方便快速开发socket服务端和客户端
The newest version!
package com.joe.easysocket.server.common.spi;
import lombok.Data;
/**
* POJO that abstracts a change to a path
*
* @author joe
*/
@Data
public class NodeEvent {
private final Type type;
private final ChildData data;
/**
* Type of change
*/
public enum Type {
/**
* A child was added to the path
*/
NODE_ADDED,
/**
* A child's data was changed
*/
NODE_UPDATED,
/**
* A child was removed from the path
*/
NODE_REMOVED,
}
/**
* @param type event type
* @param data event data or null
*/
public NodeEvent(NodeEvent.Type type, ChildData data) {
this.type = type;
this.data = data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy