public final class InMemoryStorage extends Object implements StorageComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
InMemoryStorage.Builder |
Component.CheckResult| Constructor and Description |
|---|
InMemoryStorage() |
| Modifier and Type | Method and Description |
|---|---|
int |
acceptedSpanCount() |
AsyncSpanConsumer |
asyncSpanConsumer() |
AsyncSpanStore |
asyncSpanStore() |
static InMemoryStorage.Builder |
builder() |
Component.CheckResult |
check()
Answers the question: Are operations on this component likely to succeed?
|
void |
clear() |
void |
close()
Closes any network resources created implicitly by the component.
|
StorageAdapters.SpanConsumer |
spanConsumer() |
InMemorySpanStore |
spanStore() |
public static InMemoryStorage.Builder builder()
public InMemorySpanStore spanStore()
spanStore in interface StorageComponentpublic AsyncSpanStore asyncSpanStore()
asyncSpanStore in interface StorageComponentpublic StorageAdapters.SpanConsumer spanConsumer()
public AsyncSpanConsumer asyncSpanConsumer()
asyncSpanConsumer in interface StorageComponentpublic void clear()
public int acceptedSpanCount()
public Component.CheckResult check()
ComponentImplementations should initialize the component if necessary. It should test a remote connection, or consult a trusted source to derive the result. They should use least resources possible to establish a meaningful result, and be safe to call many times, even concurrently.
check in interface ComponentComponent.CheckResult.OKpublic void close()
ComponentFor example, if this created a connection, it would close it. If it was provided one, this would close any sessions, but leave the connection open.
Copyright © 2015–2018 OpenZipkin. All rights reserved.