|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ehsbe.commons.util.jms.QueueEvent
public class QueueEvent
Event to inform listeners about CRUD events received from a JMS topic queue and disconnection/reconnection to a JMS topic queue.
| Constructor Summary | |
|---|---|
QueueEvent(String topic,
boolean connected)
Create a new connect/disconnect event. |
|
QueueEvent(String topic,
long id,
CrudEvent<?> e)
Create a new Queue event message. |
|
| Method Summary | |
|---|---|
String |
getClassname()
Convinience method to get the classname of the object, to which the CRUD event is related. |
Boolean |
getConnected()
Get the state of the connection to the JMS queue. |
CrudEvent<?> |
getCrudEvent()
Get the CRUD event, which caused this event to be sent. |
Integer[] |
getIntegerIds()
Convinience method to get the object ids of the related CRUD event. |
int[] |
getIntIds()
Convinience method to get the object ids of the related CRUD event. |
long[] |
getLongIds()
Convinience method to get the object ids of the related CRUD event. |
Long[] |
getLongObjectIds()
Convinience method to get the object ids of the related CRUD event. |
long |
getMessageId()
Get the id of the corresponding message, which contained the CRUD event. |
String[] |
getStringIds()
Convinience method to get the object ids of the related CRUD event. |
String |
getTopic()
Get the topic of the message queue. |
CrudEvent.CrudType |
getType()
Conviniece mthod to get the type of the CRUD event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueEvent(String topic,
long id,
CrudEvent<?> e)
topic - The topic of the corresponding JMS message.id - The sequence number of the corresponding JMS message.
A negative number, if one or more messages have been lost,
a positive sequence number otherwise.e - The CRUD event
public QueueEvent(String topic,
boolean connected)
topic - The topic of the JMS queue, which the receiver has
been connected/disconnected.connected - true if the connection has been
re-established, false if the connection has ben lost.| Method Detail |
|---|
public String getTopic()
null string.public Boolean getConnected()
null if this event is not a connect/disconnect
notification. Otherwise Boolean.TRUE if this is a
notification, that the connection to the JMS queue was re-established;
Boolean.FALSE if the connection got lost.public long getMessageId()
0 if this is a connect/disconnect notification, a
negative number, if one or more messages were lost, a positive sequence
number otherwise.public CrudEvent<?> getCrudEvent()
null if this is a connect/disconnect notification,
the event otherwise.public String getClassname()
null if this is a connect/disconnect notification,
the classname otherwise.CrudEvent.getClassname()public CrudEvent.CrudType getType()
null, if this is a connect/disconnect notification,
the CRUD type otherwiseCrudEvent.getType()public String[] getStringIds()
getCrudEvent(),
CrudEvent.getIds()public int[] getIntIds()
getCrudEvent(),
CrudEvent.getIds()public Integer[] getIntegerIds()
getCrudEvent(),
CrudEvent.getIds()public long[] getLongIds()
getCrudEvent(),
CrudEvent.getIds()public Long[] getLongObjectIds()
getCrudEvent(),
CrudEvent.getIds()
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||