Class ChannelNameKey

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ChannelNameKey
    extends java.lang.Object
    implements java.io.Serializable
    Instances of this hold a key for a particular channel. ChannelNameKey objects are issued by the channel name server. They must be supplied to the channel name server along with any channel management requests (channel deregistration, relocation etc.). This class has no public constructor.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hashCode  
      private long key  
      private long val  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelNameKey​(long val)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Compares another Object with this ChannelNameKey.
      int hashCode()
      Returns an int hash code for this object.
      • Methods inherited from class java.lang.Object

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

      • hashCode

        private int hashCode
      • val

        private final long val
      • key

        private final long key
    • Constructor Detail

      • ChannelNameKey

        ChannelNameKey​(long val)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Compares another Object with this ChannelNameKey.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other Object to compare with this Object.
        Returns:
        true iff o is a non-null ChannelNameKey object which holds the same key as this object.
      • hashCode

        public int hashCode()
        Returns an int hash code for this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        an int hash code.