org.apache.commons.modeler

Class BaseNotification

public final class BaseNotification extends Notification

Base JMX Notification. Supports in int code and notes - for faster access and dispatching.

Author: Costin Manolache

Field Summary
intcode
Object[]notes
longseq
Objectsource
longtstamp
Stringtype
Constructor Summary
BaseNotification(String type, Object source, long seq, long tstamp, int code)
Private constructor.
Method Summary
intgetCode()
Action id, useable in switches and table indexes
ObjectgetNote(int i)
voidinit(String type, Object source, long seq, long tstamp, int code)
voidrecycle()
voidsetNote(int i, Object o)

Field Detail

code

private int code

notes

private Object[] notes

seq

private long seq

source

private Object source

tstamp

private long tstamp

type

private String type

Constructor Detail

BaseNotification

private BaseNotification(String type, Object source, long seq, long tstamp, int code)
Private constructor.

Method Detail

getCode

public int getCode()
Action id, useable in switches and table indexes

getNote

public final Object getNote(int i)

init

public void init(String type, Object source, long seq, long tstamp, int code)

recycle

public void recycle()

setNote

public final void setNote(int i, Object o)
Copyright (c) 2001-2003 - Apache Software Foundation