Class EventBusMessage

java.lang.Object
com.iohao.net.framework.communication.eventbus.EventBusMessage

public final class EventBusMessage extends Object
EventBusMessage
Since:
21
Author:
渔民小镇
date:
2023-12-24
  • Field Details

    • serverId

      public int serverId
    • threadIndex

      public long threadIndex
    • traceId

      public String traceId
    • topic

      public String topic
    • data

      public byte[] data
    • sourceServerId

      public transient int sourceServerId
    • eventSource

      public transient Object eventSource
    • eventServerMessages

      public transient Collection<EventServerMessage> eventServerMessages
      Information from other processes
    • fireType

      public transient int fireType
  • Constructor Details

    • EventBusMessage

      public EventBusMessage()
  • Method Details

    • setEventSource

      public void setEventSource(Object eventSource)
    • containsFireType

      public boolean containsFireType(int fireType)
      Checks if the type of subscriber that has already been triggered exists
      Parameters:
      fireType - EventBusFireType
      Returns:
      true if it exists
      See Also:
    • addFireType

      public void addFireType(int fireType)
      Adds the type of subscriber that has already been triggered
      Parameters:
      fireType - EventBusFireType
      See Also:
    • emptyFireType

      public boolean emptyFireType()
    • ofClone

      public EventBusMessage ofClone(int serverId)