org.jboss.messaging.core
Interface Distributor

All Known Subinterfaces:
Channel, CoreDestination, Router
All Known Implementing Classes:
ChannelSupport, FirstReceiverPointToPointRouter, PointToMultipointRouter, Queue, Replicator, RoundRobinPointToPointRouter, RouterSupport, SingleDestinationRouter, Topic

public interface Distributor

An interface for Receiver management.

Version:
$Revision: 453 $ $Id: Distributor.java 453 2005-11-18 22:07:51Z ovidiu $
Author:
Ovidiu Feodorov

Method Summary
 boolean add(Receiver receiver)
          Add a local receiver to this distributor.
 void clear()
          Remove all receivers.
 boolean contains(Receiver receiver)
           
 java.util.Iterator iterator()
           
 boolean remove(Receiver receiver)
          Remove a local receiver from this distributor.
 

Method Detail

contains

public boolean contains(Receiver receiver)

iterator

public java.util.Iterator iterator()
Returns:
an iterator of local receivers

add

public boolean add(Receiver receiver)
Add a local receiver to this distributor.

Returns:
true if the distributor did not already contain the specified receiver and the receiver was added to the distributor, false otherwise.

remove

public boolean remove(Receiver receiver)
Remove a local receiver from this distributor.

Returns:
true if this distributor contained the specified receiver.

clear

public void clear()
Remove all receivers.



Copyright © 2006 JBoss Inc. All Rights Reserved.