Class ForwardingStorageComponent

java.lang.Object
zipkin2.Component
zipkin2.storage.StorageComponent
zipkin2.storage.ForwardingStorageComponent
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class ForwardingStorageComponent
extends StorageComponent
We provide a forwarding variant of the storage component for use cases such as trace decoration, or throttling.

Extending this is better than extending StorageComponent directly because it reduces risk of accidentally masking new methods. For example, if you extended storage component and later a new feature for cache control was added, that feature would be blocked until the wrapper was re-compiled. Such would be worse in most cases than not having decoration on new methods.

Since:
2.16