Class StreamMessage

    • Method Detail

      • serializedSize

        public static long serializedSize​(StreamMessage message,
                                          int version)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public static StreamMessage deserialize​(DataInputPlus in,
                                                int version)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getPriority

        public int getPriority()
        Returns:
        priority of this message. higher value, higher priority.
      • getOrCreateAndAttachInboundSession

        public StreamSession getOrCreateAndAttachInboundSession​(StreamingChannel channel,
                                                                int messagingVersion)
        Get or create a StreamSession based on this stream message data: not all stream messages support this, so the default implementation just throws an exception.