public final class BinaryAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static BinaryExtract |
extractionCarrier(ByteBuffer buffer)
Creates an inbound Binary instance used for extraction with the
specified ByteBuffer as input.
|
static BinaryInject |
injectionCarrier(ByteBuffer buffer)
Creates an outbound
Binary instance used for injection with the
specified ByteBuffer as output. |
public static BinaryExtract extractionCarrier(ByteBuffer buffer)
buffer
- The ByteBuffer used as input.Binary
carrier used for extraction.public static BinaryInject injectionCarrier(ByteBuffer buffer)
Binary
instance used for injection with the
specified ByteBuffer as output. ByteBuffer.limit() will be set to the value
of the requested length at BinaryInject.injectionBuffer(int)
time, and
AssertionError will be thrown if the requested length is larger than
the remaining length of ByteBuffer.buffer
- The ByteBuffer used as input.Copyright © 2016–2019 OpenTracing. All rights reserved.