
com.jamonapi.Listeners Maven / Gradle / Ivy
package com.jamonapi;
/** Holds any {@code ListenerType}'s that a {@code Monitor} has.
*
* @author stevesouza
*
*/
final class Listeners {
public static final String VALUE = "value";
public static final String MAX = "max";
public static final String MAXACTIVE = "maxactive";
public static final String MIN = "min";
private static final String[] listenerTypes = { VALUE, MAX, MAXACTIVE, MIN };
static final int VALUE_LISTENER_INDEX=0;
static final int MAX_LISTENER_INDEX=1;
static final int MAXACTIVE_LISTENER_INDEX=2;
static final int MIN_LISTENER_INDEX=3;
private final ListenerType[] listenerArray=new ListenerType[4];
Listeners(Object lockObj) {
for (int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy