本文整理了Java中org.apache.qpid.proton.amqp.Binary.create()
方法的一些代码示例,展示了Binary.create()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binary.create()
方法的具体详情如下:
包路径:org.apache.qpid.proton.amqp.Binary
类名称:Binary
方法名:create
暂无
代码示例来源:origin: Azure/azure-event-hubs-java
public EventDataImpl(ByteBuffer buffer) {
this();
if (buffer == null) {
throw new IllegalArgumentException("data cannot be null");
}
this.bodyData = Binary.create(buffer);
}
代码示例来源:origin: org.apache.qpid/proton-j-impl
TransportFrame frame = new TransportFrame(channel, (FrameBody) frameBody, Binary.create(originalPayload));
TransportImpl.log(_logCtx, TransportImpl.OUTGOING, frame);
代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot
Binary payloadBin = Binary.create(originalPayload);
FrameBody body = null;
if (frameBody == null)
代码示例来源:origin: org.apache.qpid/proton
_protocolTracer.sentFrame(new TransportFrame(channel, (FrameBody) frameBody, Binary.create(originalPayload)));
代码示例来源:origin: org.apache.qpid/proton-j
private void logFrame(int channel, Object frameBody, ReadableBuffer payload, int payloadSize) {
if (frameType == AMQP_FRAME_TYPE) {
ReadableBuffer originalPayload = null;
if (payload != null) {
originalPayload = payload.slice();
originalPayload.limit(payloadSize);
}
Binary payloadBin = Binary.create(originalPayload);
FrameBody body = null;
if (frameBody == null) {
body = EmptyFrame.INSTANCE;
} else {
body = (FrameBody) frameBody;
}
TransportFrame frame = new TransportFrame(channel, body, payloadBin);
transport.log(TransportImpl.OUTGOING, frame);
ProtocolTracer tracer = transport.getProtocolTracer();
if (tracer != null) {
tracer.sentFrame(frame);
}
}
}
}
代码示例来源:origin: apache/activemq-artemis
String value = message.getStringProperty(key);
if (value != null) {
properties.setUserId(Binary.create(StandardCharsets.UTF_8.encode(value)));
内容来源于网络,如有侵权,请联系作者删除!