Class PVMSCodec


  • public class PVMSCodec
    extends Object
    • Constructor Detail

      • PVMSCodec

        public PVMSCodec()
    • Method Detail

      • incrementPacketSeqNum

        public final int incrementPacketSeqNum()
        Atomically increments packet (31-bit) sequence number.
        Returns:
        the previous value
      • incrementMessageSeqNum

        public final int incrementMessageSeqNum()
        Atomically increments message (29-bit) sequence number.
        Returns:
        the previous value
      • pmsShutdownControlMessage

        protected void pmsShutdownControlMessage​(ByteBuffer buffer)
      • pmsKeepAliveControlMessage

        protected void pmsKeepAliveControlMessage​(ByteBuffer buffer,
                                                  int expirationTimeSec)
      • pmsSubscribeControlMessage

        protected void pmsSubscribeControlMessage​(ByteBuffer buffer,
                                                  int expirationTimeSec,
                                                  String topicID)
      • handleControlPacket

        protected void handleControlPacket​(ByteBuffer buffer,
                                           InetSocketAddress socketAddress,
                                           int typeReserved,
                                           int additionalInfo,
                                           long id)
      • handleKeepAlive

        protected void handleKeepAlive​(InetSocketAddress socketAddress,
                                       long id,
                                       int expirationTimeSec)
      • handleShutdown

        protected void handleShutdown​(InetSocketAddress socketAddress,
                                      long id)
      • handleSubscribe

        protected void handleSubscribe​(InetSocketAddress socketAddress,
                                       long id,
                                       int expirationTimeSec,
                                       String topicId)