Class EventMessage

java.lang.Object
ch.rasc.wamp2spring.message.WampMessage
ch.rasc.wamp2spring.message.EventMessage
All Implemented Interfaces:
org.springframework.messaging.Message<Object>

public class EventMessage extends WampMessage
[EVENT, SUBSCRIBED.Subscription|id, PUBLISHED.Publication|id, Details|dict]
[EVENT, SUBSCRIBED.Subscription|id, PUBLISHED.Publication|id, Details|dict, PUBLISH.Arguments|list]
[EVENT, SUBSCRIBED.Subscription|id, PUBLISHED.Publication|id, Details|dict, PUBLISH.Arguments|list, PUBLISH.ArgumentKw|dict]
  • Field Details

  • Constructor Details

    • EventMessage

      public EventMessage(long subscriptionId, long publicationId, @Nullable String topic, @Nullable Number publisher, boolean retained, @Nullable List<Object> arguments, @Nullable Map<String,Object> argumentsKw)
    • EventMessage

      public EventMessage(@Nullable String receiverWebSocketSessionId, long subscription, long publication, @Nullable String topic, @Nullable Number publisher, boolean retained, PublishMessage publishMessage)
  • Method Details

    • deserialize

      public static EventMessage deserialize(com.fasterxml.jackson.core.JsonParser jp) throws IOException
      Throws:
      IOException
    • serialize

      public void serialize(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
      Specified by:
      serialize in class WampMessage
      Throws:
      IOException
    • getSubscriptionId

      public long getSubscriptionId()
    • getPublicationId

      public long getPublicationId()
    • getTopic

      @Nullable public String getTopic()
    • getPublisher

      @Nullable public Number getPublisher()
    • isRetained

      public boolean isRetained()
    • getArguments

      @Nullable public List<Object> getArguments()
    • getArgumentsKw

      @Nullable public Map<String,Object> getArgumentsKw()
    • toString

      public String toString()
      Overrides:
      toString in class Object