类 Event
- java.lang.Object
-
- com.alibaba.nacos.common.notify.Event
-
- 所有已实现的接口:
java.io.Serializable
- 直接已知子类:
ServerConfigChangeEvent,SlowEvent,TraceEvent
public abstract class Event extends java.lang.Object implements java.io.SerializableAn abstract class for event.- 作者:
- liaochuntao, zongtanghu
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 private longsequenceprivate static java.util.concurrent.atomic.AtomicLongSEQUENCEprivate static longserialVersionUID
-
构造器概要
构造器 构造器 说明 Event()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanisPluginEvent()Whether is plugin event.java.lang.Stringscope()Event scope.longsequence()Event sequence number, which can be used to handle the sequence of events.
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
- 另请参阅:
- 常量字段值
-
SEQUENCE
private static final java.util.concurrent.atomic.AtomicLong SEQUENCE
-
sequence
private final long sequence
-
-
方法详细资料
-
sequence
public long sequence()
Event sequence number, which can be used to handle the sequence of events.- 返回:
- sequence num, It's best to make sure it's monotone.
-
scope
public java.lang.String scope()
Event scope.- 返回:
- event scope, return null if for all scope
-
isPluginEvent
public boolean isPluginEvent()
Whether is plugin event. If so, the event can be dropped when no publish and subscriber without any hint. Default false- 返回:
trueif is plugin event, otherwisefalse
-
-