org.jboss.messaging.channel.interfaces
Interface Channel

All Known Implementing Classes:
AbstractChannel (src)

public interface Channel

A channel.


Method Summary
 void close()
          Close the channel
 MessageReference (src) receive(long wait)
          Receive a message from the channel.
 void send(MessageReference (src)  reference)
          Send a message to the channel.
 

Method Detail

send

public void send(MessageReference (src)  reference)
Send a message to the channel.

Parameters:
reference - the message reference to send

receive

public MessageReference (src)  receive(long wait)
Receive a message from the channel.

Parameters:
wait - the length of time to wait for a message if there are none immediately available, use -1 for no wait.
Returns:
a message or null if there are no messages

close

public void close()
Close the channel