public class MonitoringConfigImpl<E> extends Object implements MonitoringConfig<E>
Constructor and Description |
---|
MonitoringConfigImpl(Class<E> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
addProbes(E... probes)
Add the monitoring probes, which will be notified about object's lifecycle events.
|
void |
clearProbes()
Removes all the monitoring probes, which are registered on the object.
|
E[] |
getProbes()
Get the the monitoring probes, which are registered on the objet.
|
E[] |
getProbesUnsafe()
Get the monitoring probes array (direct).
|
boolean |
hasProbes() |
boolean |
removeProbes(E... probes)
Remove the monitoring probes.
|
public final void addProbes(E... probes)
addProbes
in interface MonitoringConfig<E>
probes
- the monitoring probes.public final boolean removeProbes(E... probes)
removeProbes
in interface MonitoringConfig<E>
probes
- the monitoring probes.public final E[] getProbes()
MonitoringConfig.addProbes(Object[])
and
MonitoringConfig.removeProbes(Object[])
instead.getProbes
in interface MonitoringConfig<E>
public final E[] getProbesUnsafe()
public boolean hasProbes()
hasProbes
in interface MonitoringConfig<E>
public final void clearProbes()
clearProbes
in interface MonitoringConfig<E>
Copyright © 2013 Oracle Corporation. All Rights Reserved.