public final class BinaryAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static Binary |
extractionCarrier(ByteBuffer buffer)
Creates an inbound Binary instance used for extraction with the
specified ByteBuffer as input.
|
static Binary |
injectionCarrier(ByteBuffer buffer)
Creates an outbound
Binary instance used for injection with the
specified ByteBuffer as output. |
public static Binary extractionCarrier(ByteBuffer buffer)
buffer
- The ByteBuffer used as input.Binary
carrier used for extraction.public static Binary 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 Binary#injectionBuffer()
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–2018 OpenTracing. All rights reserved.