类 Event

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private long sequence  
      private static java.util.concurrent.atomic.AtomicLong SEQUENCE  
      private static long serialVersionUID  
    • 构造器概要

      构造器 
      构造器 说明
      Event()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean isPluginEvent()
      Whether is plugin event.
      java.lang.String scope()
      Event scope.
      long sequence()
      Event sequence number, which can be used to handle the sequence of events.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • serialVersionUID

        private static final long serialVersionUID
        另请参阅:
        常量字段值
      • SEQUENCE

        private static final java.util.concurrent.atomic.AtomicLong SEQUENCE
      • sequence

        private final long sequence
    • 构造器详细资料

      • Event

        public Event()
    • 方法详细资料

      • 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
        返回:
        true if is plugin event, otherwise false