Package alluxio.grpc

Class DataMessage<T,​R>

  • Type Parameters:
    T - the type of the message
    R - the type of the data buffer

    public class DataMessage<T,​R>
    extends java.lang.Object
    A struct that carries a message with a data buffer.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataMessage​(T message, R buffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R getBuffer()  
      T getMessage()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataMessage

        public DataMessage​(T message,
                           R buffer)
        Parameters:
        message - the message
        buffer - the data buffer
    • Method Detail

      • getMessage

        public T getMessage()
        Returns:
        the message
      • getBuffer

        public R getBuffer()
        Returns:
        the data buffer