Modifier and Type | Method and Description |
---|---|
Collection |
getPayload()
Returns the payload data for the current span.
|
boolean |
isPayloadAvailable()
Checks if a payload can be loaded at this position.
|
Collection getPayload() throws IOException
Spans.next()
is called for
the first time.
This method must not be called more than once after each call
of Spans.next()
. However, payloads are loaded lazily,
so if the payload data for the current position is not needed,
this method may not be called at all for performance reasons.WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
IOException
boolean isPayloadAvailable()
Spans.next()
.
WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.