public static MessageBody fromValueData ( Object value ) { if ( value == null ) { throw new IllegalArgumentException ( "Value data is null." ) ; } MessageBody body = new MessageBody ( ) ; body . bodyType = MessageBodyType . VALUE ; body . valueData = value ; body . sequenceData = null ; body . binaryData = null ; return body ; }
Creates message body of AMQPValue type .