|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.messaging.channel.plugins.handler.AbstractChannel
An abstract channel
| Field Summary | |
protected Consumer (src) |
consumer
The consumer |
protected ChannelHandler (src) |
handler
The channel handler |
| Constructor Summary | |
AbstractChannel(Consumer (src) consumer,
ChannelHandler (src) handler)
Create a new AbstractChannel. |
|
| Method Summary | |
void |
close()
Close the channel |
MessageReference (src) |
receive(long wait)
Receive a message from the channel. |
void |
send(MessageReference (src) message)
Send a message to the channel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Consumer (src) consumer
protected ChannelHandler (src) handler
| Constructor Detail |
public AbstractChannel(Consumer (src) consumer,
ChannelHandler (src) handler)
consumer - the consumerhandler - the handler| Method Detail |
public void send(MessageReference (src) message)
Channel (src)
send in interface Channel (src) message - the message reference to sendpublic MessageReference (src) receive(long wait)
Channel (src)
receive in interface Channel (src) wait - the length of time to wait for a message if there are none
immediately available, use -1 for no wait.
public void close()
Channel (src)
close in interface Channel (src)
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||