public abstract class GuavaToAsyncSpanStoreAdapter extends com.google.common.collect.ForwardingObject implements AsyncSpanStore, AsyncSpanConsumer
AsyncSpanStore derived from an GuavaSpanStore. Used to adapt to other
composition libraries.
In implementation, this adds the zipkin callback to the future's listeners.
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.util.concurrent.ListenableFuture<List<String>> |
EMPTY_LIST |
protected static com.google.common.collect.Ordering<List<Span>> |
TRACE_DESCENDING |
NOOP_CALLBACK| Modifier | Constructor and Description |
|---|---|
protected |
GuavaToAsyncSpanStoreAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(List<Span> spans,
Callback<Void> callback) |
protected abstract GuavaSpanStore |
delegate()
Allows this adapter to be extended by a
GuavaSpanStore, and not interfere with its
constructor. |
void |
getDependencies(long endTs,
Long lookback,
Callback<List<DependencyLink>> callback) |
void |
getRawTrace(long traceId,
Callback<List<Span>> callback) |
void |
getServiceNames(Callback<List<String>> callback) |
void |
getSpanNames(String serviceName,
Callback<List<String>> callback) |
void |
getTrace(long id,
Callback<List<Span>> callback) |
void |
getTraces(QueryRequest request,
Callback<List<List<Span>>> callback) |
protected static final com.google.common.util.concurrent.ListenableFuture<List<String>> EMPTY_LIST
protected abstract GuavaSpanStore delegate()
GuavaSpanStore, and not interfere with its
constructor.delegate in class com.google.common.collect.ForwardingObjectpublic void accept(List<Span> spans, Callback<Void> callback)
accept in interface AsyncSpanConsumerpublic void getTraces(QueryRequest request, Callback<List<List<Span>>> callback)
getTraces in interface AsyncSpanStorepublic void getTrace(long id,
Callback<List<Span>> callback)
getTrace in interface AsyncSpanStorepublic void getRawTrace(long traceId,
Callback<List<Span>> callback)
getRawTrace in interface AsyncSpanStorepublic void getServiceNames(Callback<List<String>> callback)
getServiceNames in interface AsyncSpanStorepublic void getSpanNames(String serviceName, Callback<List<String>> callback)
getSpanNames in interface AsyncSpanStorepublic void getDependencies(long endTs,
@Nullable
Long lookback,
Callback<List<DependencyLink>> callback)
getDependencies in interface AsyncSpanStoreCopyright © 2015–2016 OpenZipkin. All rights reserved.