com.jamonapi.Listeners Maven / Gradle / Ivy
package com.jamonapi;
import java.io.Serializable;
/** Holds any {@code ListenerType}'s that a {@code Monitor} has.
*
* @author stevesouza
*
*/
final class Listeners implements Serializable {
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 static final long serialVersionUID = 278L;
private final ListenerType[] listenerArray=new ListenerType[4];
Listeners(Object lockObj) {
for (int i=0;i