| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getPayload()
Returns the payload data for the current span.
|
boolean |
isPayloadAvailable()
Checks if a payload can be loaded at this position.
|
java.util.Collection getPayload()
throws java.io.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.
java.io.IOExceptionboolean 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-2014 Apache Software Foundation. All Rights Reserved.