Interface RpcDispatcher.Marshaller2

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object objectFromByteBuffer​(byte[] buf, int offset, int length)  
      Buffer objectToBuffer​(java.lang.Object obj)
      Marshals the object into a byte[] buffer and returns a Buffer with a ref to the underlying byte[] buffer, offset and length.
      Note that the underlying byte[] buffer must not be changed as this would change the buffer of a message which potentially can get retransmitted, and such a retransmission would then carry a ref to a changed byte[] buffer !
    • Method Detail

      • objectToBuffer

        Buffer objectToBuffer​(java.lang.Object obj)
                       throws java.lang.Exception
        Marshals the object into a byte[] buffer and returns a Buffer with a ref to the underlying byte[] buffer, offset and length.
        Note that the underlying byte[] buffer must not be changed as this would change the buffer of a message which potentially can get retransmitted, and such a retransmission would then carry a ref to a changed byte[] buffer !
        Parameters:
        obj -
        Returns:
        Throws:
        java.lang.Exception
      • objectFromByteBuffer

        java.lang.Object objectFromByteBuffer​(byte[] buf,
                                              int offset,
                                              int length)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception