Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun GlassFish(tm) Message Queue v4.4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.messaging.jms.notification
Class Event

    java.lang.Object
      java.util.EventObject
          com.sun.messaging.jms.notification.Event

All Implemented Interfaces:
  Serializable

Direct Known Subclasses:
  ConnectionEvent

    public class Event

extends EventObject

MQ Event. This is the super class for all MQ notification events. MQ may notify an application when a specific MQ event is about to occur or occurred.

See Also:
  Serialized Form

Field Summary

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`Event(Object source, String evCode, String evMessage)` Construct a MQ event associated with the source specified.

Method Summary
`String` | `getEventCode()` Get the event code associated with the MQ event.
`String` | `getEventMessage()` Get the event message associated with the connection event.
`String` | `toString()` Returns a MQ event notification event message.

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`

Constructor Detail

### Event

    public Event(Object source,
                 String evCode,
                 String evMessage)

  Construct a MQ event associated with the source specified.

  Parameters:
    `source` - the source associated with the event.
    `evCode` - the event code that represents the this event object.
    `evMessage` - the event message that describes this event object.

Method Detail

### getEventCode

    public String getEventCode()

  Get the event code associated with the MQ event.

  Returns:
    the event code associated with the MQ event.

### getEventMessage

    public String getEventMessage()

  Get the event message associated with the connection event.

  Returns:
    the event message associated with the connection event.

### toString

    public String toString()

  Returns a MQ event notification event message. The format is as follows.

  eventCode + ":" + eventMessage + ", " + source=" + source.toString().

  Overrides:
    `toString` in class `EventObject`
  Returns:
    a String representation of this EventObject.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun GlassFish(tm) Message Queue v4.4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2009 Sun Microsystems, Inc. 4150 Network Circle,
Santa Clara, California, 95054, U.S.A. All Rights Reserved.