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.mq.server
Interface Receivers

All Known Implementing Classes:
  ReceiversImpl, ReceiversImplArrayList, ReceiversImplLinkedList

public interface Receivers

Interface to be implemented by a receivers implementation. The implementation should also have a default constructor. NOTE: There is no need to internally synchronize the caller handles that.

Version:
  $Revision: 1.2 $
Author:
  Adrian Brock

Method Summary
`void` | `add(Subscription sub)` Add a receiver
`Iterator` | `iterator()` Get an iterator to loop over all receivers
`ArrayList` | `listReceivers()`
`void` | `remove(Subscription sub)` Remove a receiver
`int` | `size()`

Method Detail

### size

    public int size()

  Returns:
    Get the number of receivers

### listReceivers

    public ArrayList listReceivers()

  Returns:
    the subscriptions as an array list, this must be a clone of any internal datastructure

### add

    public void add(Subscription sub)

  Add a receiver

  Parameters:
    `sub` - the receiver to add

### remove

    public void remove(Subscription sub)

  Remove a receiver

  Parameters:
    `sub` - the receiver to remove

### iterator

    public Iterator iterator()

  Get an iterator to loop over all receivers

  Returns:
    the iterator

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 © 2002 JBoss Group, LLC. All Rights Reserved.