public interface Binary
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
extractionBuffer()
Gets the buffer containing the data used for
SpanContext extraction. |
ByteBuffer |
injectionBuffer(int lenght)
Gets the buffer used to store data as part of
SpanContext injection. |
ByteBuffer injectionBuffer(int lenght)
SpanContext
injection.
The lenght parameter hints the buffer length required for
SpanContext
injection. The user may use this to allocate a new
ByteBuffer or resize an existing one.
It is an error to call this method when Binary is used
for SpanContext
extraction.length
- The buffer length required for SpanContext
injection.
It needs to be larger than zero.SpanContext
injection.ByteBuffer extractionBuffer()
SpanContext
extraction.
It is an error to call this method when Binary is used
for SpanContext
injection.SpanContext
extraction.Copyright © 2016–2018 OpenTracing. All rights reserved.