Class BaseNotification

  • All Implemented Interfaces:
    java.io.Serializable

    public final class BaseNotification
    extends javax.management.Notification
    Base JMX Notification. Supports in int code and notes - for faster access and dispatching.
    Author:
    Costin Manolache
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int code  
      private java.lang.Object[] notes  
      private long seq  
      private java.lang.Object source  
      private long tstamp  
      private java.lang.String type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BaseNotification​(java.lang.String type, java.lang.Object source, long seq, long tstamp, int code)
      Private constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Action id, useable in switches and table indexes
      java.lang.Object getNote​(int i)  
      void init​(java.lang.String type, java.lang.Object source, long seq, long tstamp, int code)  
      void recycle()  
      void setNote​(int i, java.lang.Object o)  
      • Methods inherited from class javax.management.Notification

        getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • code

        private int code
      • type

        private java.lang.String type
      • source

        private java.lang.Object source
      • seq

        private long seq
      • tstamp

        private long tstamp
      • notes

        private java.lang.Object[] notes
    • Constructor Detail

      • BaseNotification

        private BaseNotification​(java.lang.String type,
                                 java.lang.Object source,
                                 long seq,
                                 long tstamp,
                                 int code)
        Private constructor.
    • Method Detail

      • recycle

        public void recycle()
      • init

        public void init​(java.lang.String type,
                         java.lang.Object source,
                         long seq,
                         long tstamp,
                         int code)
      • getCode

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

        public final java.lang.Object getNote​(int i)
      • setNote

        public final void setNote​(int i,
                                  java.lang.Object o)