|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the base interface for an event object in a JMS ObjectMessage payload.
If a JMS MessageListener receives such a message, the following code will run:
public void onMessage(Message msg) { ObjectMessage omsg = (ObjectMessage) msg; Event event = (Event) omsg.getObject(); System.out.println("New event received from " + event.getApplicationDN()); }
Method Summary | |
java.lang.Object |
clone()
Deep copy this Event. |
java.lang.String |
getApplicationDN()
Return the DN of the application sending the event. |
java.util.Date |
getEventTime()
Return the time the event was published. |
void |
setApplicationDN(java.lang.String applicationDN)
|
void |
setEventTime(java.util.Date time)
Set the time that the event is published. |
Methods inherited from interface com.sun.management.oss.SerializerFactory |
getSupportedSerializerTypes, makeSerializer |
Method Detail |
public java.lang.Object clone()
public java.util.Date getEventTime()
public void setEventTime(java.util.Date time) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String getApplicationDN()
java.lang.IllegalArgumentException
public void setApplicationDN(java.lang.String applicationDN) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |