Class TextJmsMsg

java.lang.Object
me.ehp246.aufjms.core.util.TextJmsMsg
All Implemented Interfaces:
JmsMsg

public final class TextJmsMsg
extends java.lang.Object
implements JmsMsg
Utility to un-pack a JMS message. All read calls are delayed and on-demand.
Since:
1.0
Author:
Lei Yang
  • Method Summary

    Modifier and Type Method Description
    java.lang.String correlationId()  
    javax.jms.Destination destination()  
    long expiration()  
    static JmsMsg from​(javax.jms.TextMessage message)  
    java.lang.String groupId()  
    java.lang.Integer groupSeq()  
    java.lang.String id()  
    java.lang.String invoking()  
    javax.jms.TextMessage msg()  
    <T> T property​(java.lang.String name, java.lang.Class<T> type)  
    javax.jms.Destination replyTo()  
    java.lang.String text()  
    java.time.Instant timestamp()  
    java.lang.String type()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • id

      public java.lang.String id()
      Specified by:
      id in interface JmsMsg
    • type

      public java.lang.String type()
      Specified by:
      type in interface JmsMsg
    • correlationId

      public java.lang.String correlationId()
      Specified by:
      correlationId in interface JmsMsg
    • replyTo

      public javax.jms.Destination replyTo()
      Specified by:
      replyTo in interface JmsMsg
    • text

      public java.lang.String text()
      Specified by:
      text in interface JmsMsg
    • groupId

      public java.lang.String groupId()
      Specified by:
      groupId in interface JmsMsg
    • groupSeq

      public java.lang.Integer groupSeq()
      Specified by:
      groupSeq in interface JmsMsg
    • expiration

      public long expiration()
      Specified by:
      expiration in interface JmsMsg
    • destination

      public javax.jms.Destination destination()
      Specified by:
      destination in interface JmsMsg
    • invoking

      public java.lang.String invoking()
      Specified by:
      invoking in interface JmsMsg
    • property

      public <T> T property​(java.lang.String name, java.lang.Class<T> type)
      Specified by:
      property in interface JmsMsg
    • timestamp

      public java.time.Instant timestamp()
      Specified by:
      timestamp in interface JmsMsg
    • msg

      public javax.jms.TextMessage msg()
      Specified by:
      msg in interface JmsMsg
    • from

      public static JmsMsg from​(javax.jms.TextMessage message)