Class AbstractExposableEndpoint<O extends Operation>
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint<O>
- Type Parameters:
O
- the operation type.
- All Implemented Interfaces:
ExposableEndpoint<O>
- Direct Known Subclasses:
AbstractDiscoveredEndpoint
public abstract class AbstractExposableEndpoint<O extends Operation> extends Object implements ExposableEndpoint<O>
Abstract base class forExposableEndpoint
implementations.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description AbstractExposableEndpoint(EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
Create a newAbstractExposableEndpoint
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointId
getEndpointId()
Return the endpoint ID.Collection<O>
getOperations()
Returns the operations of the endpoint.boolean
isEnableByDefault()
Returns if the endpoint is enabled by default.
Constructor Detail
AbstractExposableEndpoint
public AbstractExposableEndpoint(EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
Create a newAbstractExposableEndpoint
instance.- Parameters:
id
- the endpoint idenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operations
Method Detail
getEndpointId
public EndpointId getEndpointId()
Description copied from interface:ExposableEndpoint
Return the endpoint ID.- Specified by:
getEndpointId
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- the endpoint ID
isEnableByDefault
public boolean isEnableByDefault()
Description copied from interface:ExposableEndpoint
Returns if the endpoint is enabled by default.- Specified by:
isEnableByDefault
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- if the endpoint is enabled by default
getOperations
public Collection<O> getOperations()
Description copied from interface:ExposableEndpoint
Returns the operations of the endpoint.- Specified by:
getOperations
in interfaceExposableEndpoint<O extends Operation>
- Returns:
- the operations