|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Channel
A Channel is a transactional, reliable message delivery mechanism that forwards a message from a sender to one or more receivers.
Method Summary | |
---|---|
void |
activate()
Activate the channel. |
java.util.List |
browse(Filter filter)
|
void |
close()
Close the channel |
void |
deactivate()
Deactivate the channel |
void |
deliver()
Delivers as many references as possible to its router until receivers will accept no more |
long |
getChannelID()
|
int |
getDeliveringCount()
|
int |
getMaxSize()
|
int |
getMessageCount()
|
int |
getMessagesAdded()
Get the total number of messages added since this channel was started |
int |
getScheduledCount()
Count scheduled for delivery |
boolean |
isActive()
|
boolean |
isRecoverable()
|
void |
load()
Load any references for this channel from storage |
void |
removeAllReferences()
Remove all the references in the channel |
void |
setMaxSize(int newSize)
Set the maximum number of references this channel can store |
void |
unload()
Unload any references for this channel |
Methods inherited from interface org.jboss.messaging.core.contract.DeliveryObserver |
---|
acknowledge, cancel |
Methods inherited from interface org.jboss.messaging.core.contract.Receiver |
---|
handle |
Method Detail |
---|
long getChannelID()
boolean isRecoverable()
java.util.List browse(Filter filter)
filter
- - may be null, in which case no filter is applied.
void deliver()
void close()
int getMessageCount()
int getDeliveringCount()
int getScheduledCount()
void removeAllReferences() throws java.lang.Throwable
java.lang.Throwable
void load() throws java.lang.Exception
java.lang.Exception
void unload() throws java.lang.Exception
java.lang.Exception
void activate()
void deactivate()
boolean isActive()
int getMaxSize()
void setMaxSize(int newSize)
newSize
- int getMessagesAdded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |