Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.messaging.core
Interface Distributor

All Known Subinterfaces:
  Channel, CoreDestination, Router

All Known Implementing Classes:
  ChannelSupport, PointToMultipointRouter, PointToPointRouter, Queue, Replicator, RouterSupport, SingleDestinationRouter, Topic

public interface Distributor

An interface for Receiver management.

Version:
  `$Revision: 1.6 $` $Id: Distributor.java,v 1.6 2005/11/18 22:07:51 ovidiu Exp $
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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 JBoss Inc. All Rights Reserved.