org.jboss.messaging.channel.plugins.handler
Class ExclusiveChannel

java.lang.Object
  extended byorg.jboss.messaging.channel.plugins.handler.AbstractChannel (src) 
      extended byorg.jboss.messaging.channel.plugins.handler.ExclusiveChannel
All Implemented Interfaces:
Channel (src)

public class ExclusiveChannel
extends AbstractChannel (src)

An exclusive channel has just one subscriber


Field Summary
 
Fields inherited from class org.jboss.messaging.channel.plugins.handler.AbstractChannel (src)
consumer, handler
 
Constructor Summary
ExclusiveChannel(Consumer (src)  consumer, ExclusiveChannelHandler (src)  handler)
          Create a new ExclusiveChannel.
 
Method Summary
 void send(MessageReference (src)  message)
          Send a message to the channel.
 
Methods inherited from class org.jboss.messaging.channel.plugins.handler.AbstractChannel (src)
close, receive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExclusiveChannel

public ExclusiveChannel(Consumer (src)  consumer,
                        ExclusiveChannelHandler (src)  handler)
Create a new ExclusiveChannel.

Parameters:
consumer - the consumer
handler - the handler
Method Detail

send

public void send(MessageReference (src)  message)
Description copied from interface: Channel (src)
Send a message to the channel.

Specified by:
send in interface Channel (src)
Overrides:
send in class AbstractChannel (src)