@Provider public class InstrumentedResourceMethodDispatchAdapter extends Object implements com.sun.jersey.spi.container.ResourceMethodDispatchAdapter
ResourceMethodDispatchProvider
in an
InstrumentedResourceMethodDispatchProvider
Constructor and Description |
---|
InstrumentedResourceMethodDispatchAdapter(MetricRegistry registry)
Construct a resource method dispatch adapter using the given metrics registry.
|
InstrumentedResourceMethodDispatchAdapter(String registryName)
Construct a resource method dispatch adapter using the given metrics registry name.
|
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.spi.container.ResourceMethodDispatchProvider |
adapt(com.sun.jersey.spi.container.ResourceMethodDispatchProvider provider) |
public InstrumentedResourceMethodDispatchAdapter(String registryName)
registryName
- the name of a shared metric registrypublic InstrumentedResourceMethodDispatchAdapter(MetricRegistry registry)
InstrumentedResourceMethodDispatchAdapter
should be added to a Jersey ResourceConfig
as a singleton.registry
- a MetricRegistry
Copyright © 2014. All Rights Reserved.