Class AbstractArkEvent<T>

java.lang.Object
com.alipay.sofa.ark.spi.event.AbstractArkEvent<T>
All Implemented Interfaces:
ArkEvent
Direct Known Subclasses:
AfterBizFailedEvent, AfterBizStartupEvent, AfterBizStopEvent, AfterBizSwitchEvent, AfterFinishDeployEvent, AfterFinishStartupEvent, AfterPluginStartupEvent, AfterPluginStopEvent, BeforeBizRecycleEvent, BeforeBizStartupEvent, BeforeBizStopEvent, BeforeBizSwitchEvent, BeforePluginStartupEvent, BeforePluginStopEvent

public abstract class AbstractArkEvent<T> extends Object implements ArkEvent
Since:
Author:
guolei.sgl (guolei.sgl@antfin.com) 2019/11/1 10:45 AM
  • Field Details

    • source

      protected transient T source
    • topic

      protected String topic
    • timestamp

      protected long timestamp
  • Constructor Details

    • AbstractArkEvent

      public AbstractArkEvent(T source)
  • Method Details

    • getSource

      public T getSource()
    • setSource

      public void setSource(T source)
    • getTopic

      public String getTopic()
      Description copied from interface: ArkEvent
      Returns the topic of event
      Specified by:
      getTopic in interface ArkEvent
      Returns:
      String return event topic
    • setTopic

      public void setTopic(String topic)
    • getTimestamp

      public long getTimestamp()
    • setTimestamp

      public void setTimestamp(long timestamp)