List of usage examples for com.rabbitmq.client.impl Frame fieldValueSize
private static long fieldValueSize(Object value) throws UnsupportedEncodingException
From source file:org.springframework.integration.amqp.AmqpOutboundEndpoint.java
License:Apache License
protected boolean includeMessageHeader(String headerName, Object headerValue) { boolean isHeaderSupported = false; try {/*from w w w. ja va 2s .c o m*/ Frame.fieldValueSize(headerValue); isHeaderSupported = true; } catch (Exception e) { // Frame.fieldValueSize throws an exception for invalid header value types } return isHeaderSupported; }