com.wavefront.agent.handlers.DelegatingReportableEntityHandlerFactoryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy Show documentation
Show all versions of proxy Show documentation
Service for batching and relaying metric traffic to Wavefront
package com.wavefront.agent.handlers;
import javax.annotation.Nonnull;
/**
* Wrapper for {@link ReportableEntityHandlerFactory} to allow partial overrides for the {@code
* getHandler} method.
*
* @author [email protected]
*/
public class DelegatingReportableEntityHandlerFactoryImpl
implements ReportableEntityHandlerFactory {
protected final ReportableEntityHandlerFactory delegate;
public DelegatingReportableEntityHandlerFactoryImpl(ReportableEntityHandlerFactory delegate) {
this.delegate = delegate;
}
@Override
public ReportableEntityHandler getHandler(HandlerKey handlerKey) {
return delegate.getHandler(handlerKey);
}
@Override
public void shutdown(@Nonnull String handle) {
delegate.shutdown(handle);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy