|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A channel's state.
| Method Summary | |
boolean |
acceptReliableMessages()
A non-recoverable state cannot guarantee recoverability for reliable messages so by default it won't accept reliable messages. |
void |
acknowledge(Delivery d)
A Delivery has been acknowledged in a non transactional context. |
void |
acknowledge(Delivery d,
Transaction tx)
A Delivery has been acknowledged in the presence of a JMS local transaction. |
void |
addDelivery(Delivery d)
Add a Delivery to the state |
boolean |
addReference(MessageReference ref)
Add a MessageReference to the State |
void |
addReference(MessageReference ref,
Transaction tx)
This method is called after a new message has arrived at the Channel in the presence of a JMS transaction. |
java.util.List |
browse(Filter filter)
|
void |
cancelDelivery(Delivery d)
A Delivery has been cancelled. |
void |
clear()
Clears non-recoverable state but not persisted state, so a recovery of the channel is possible TODO really? |
java.util.List |
delivering(Filter filter)
A list of message references of messages in process of being delivered. |
boolean |
isRecoverable()
|
void |
load()
|
int |
messageCount()
Message amount. |
MessageReference |
peekFirst()
Peek the MessageReference at the head of the state without actually removing it |
void |
removeAll()
Remove all messages. |
MessageReference |
removeFirstInMemory()
Remove the MessageReference at the head of the queue from the state. |
java.util.List |
undelivered(Filter filter)
A list of message references of messages that are currently NOT being delivered by the channel. |
| Method Detail |
public boolean isRecoverable()
public boolean acceptReliableMessages()
public void addReference(MessageReference ref,
Transaction tx)
throws java.lang.Throwable
ref - The MessageReference to addtx - The JMS local transaction
java.lang.Throwable
public boolean addReference(MessageReference ref)
throws java.lang.Throwable
ref - The MessageReference to add
java.lang.Throwable
public void addDelivery(Delivery d)
throws java.lang.Throwable
d - The set of delivery instances to add
java.lang.Throwable
public void cancelDelivery(Delivery d)
throws java.lang.Throwable
d - The delivery to cancel
java.lang.Throwable
public void acknowledge(Delivery d,
Transaction tx)
throws java.lang.Throwable
d - The delivery to acknowledgetx - The JMS local transaction
java.lang.Throwable
public void acknowledge(Delivery d)
throws java.lang.Throwable
d - The delivery to acknowledge
java.lang.Throwablepublic void removeAll()
public MessageReference removeFirstInMemory()
throws java.lang.Throwable
java.lang.Throwable
public MessageReference peekFirst()
throws java.lang.Throwable
java.lang.Throwablepublic java.util.List delivering(Filter filter)
public java.util.List undelivered(Filter filter)
public java.util.List browse(Filter filter)
filter - - may be null, in which case no filter is applied.
public void clear()
public int messageCount()
public void load()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||