Class DefaultChannelId

    • Field Detail

      • MACHINE_ID

        private static final byte[] MACHINE_ID
      • PROCESS_ID

        private static final int PROCESS_ID
      • nextSequence

        private static final java.util.concurrent.atomic.AtomicInteger nextSequence
      • data

        private final byte[] data
      • hashCode

        private final int hashCode
      • shortValue

        private transient java.lang.String shortValue
      • longValue

        private transient java.lang.String longValue
    • Constructor Detail

      • DefaultChannelId

        private DefaultChannelId()
    • Method Detail

      • processHandlePid

        static int processHandlePid​(java.lang.ClassLoader loader)
      • jmxPid

        static int jmxPid​(java.lang.ClassLoader loader)
      • defaultProcessId

        static int defaultProcessId()
      • writeInt

        private int writeInt​(int i,
                             int value)
      • writeLong

        private int writeLong​(int i,
                              long value)
      • asShortText

        public java.lang.String asShortText()
        Description copied from interface: ChannelId
        Returns the short but globally non-unique string representation of the ChannelId.
        Specified by:
        asShortText in interface ChannelId
      • asLongText

        public java.lang.String asLongText()
        Description copied from interface: ChannelId
        Returns the long yet globally unique string representation of the ChannelId.
        Specified by:
        asLongText in interface ChannelId
      • newLongValue

        private java.lang.String newLongValue()
      • appendHexDumpField

        private int appendHexDumpField​(java.lang.StringBuilder buf,
                                       int i,
                                       int length)
      • hashCode

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

        public int compareTo​(ChannelId o)
        Specified by:
        compareTo in interface java.lang.Comparable<ChannelId>
      • equals

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object