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

private int
code
private Object[]
notes
private long
seq
private Object
source
private long
tstamp
private String
type

Constructor Summary

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

Method Summary

int
getCode()
Action id, useable in switches and table indexes
Object
getNote(int i)
void
init(String type, Object source, long seq, long tstamp, int code)
void
recycle()
void
setNote(int i, Object o)

Field Details

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 Details

BaseNotification

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

Method Details

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