Class MessageCacheKey


  • public class MessageCacheKey
    extends java.lang.Object
    Implements a message cache key.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      com.smartgridready.ns.v0.MessageFilter getMessageFilter()
      Gets the message filter.
      java.lang.String getTopic()
      Gets the message topic.
      int hashCode()  
      static MessageCacheKey of​(java.lang.String topic, com.smartgridready.ns.v0.MessageFilter messageFilter)
      Creates a new instance.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getTopic

        public java.lang.String getTopic()
        Gets the message topic.
        Returns:
        a string
      • getMessageFilter

        public com.smartgridready.ns.v0.MessageFilter getMessageFilter()
        Gets the message filter.
        Returns:
        a message filter
      • of

        public static MessageCacheKey of​(java.lang.String topic,
                                         com.smartgridready.ns.v0.MessageFilter messageFilter)
        Creates a new instance.
        Parameters:
        topic - the topic string
        messageFilter - the optional message filter
        Returns:
        a new key instance