org.jboss.mq.server
Class ReceiversImplArrayList

java.lang.Object
  extended byorg.jboss.mq.server.ReceiversImplArrayList
All Implemented Interfaces:
Receivers (src)

public class ReceiversImplArrayList
extends java.lang.Object
implements Receivers (src)

The default implementation of the Receivers interface.


Constructor Summary
ReceiversImplArrayList()
           
 
Method Summary
 void add(Subscription (src)  sub)
          Add a receiver
 java.util.Iterator iterator()
          Get an iterator to loop over all receivers
 java.util.ArrayList listReceivers()
           
 void remove(Subscription (src)  sub)
          Remove a receiver
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiversImplArrayList

public ReceiversImplArrayList()
Method Detail

add

public void add(Subscription (src)  sub)
Description copied from interface: Receivers (src)
Add a receiver

Specified by:
add in interface Receivers (src)
Parameters:
sub - the receiver to add

iterator

public java.util.Iterator iterator()
Description copied from interface: Receivers (src)
Get an iterator to loop over all receivers

Specified by:
iterator in interface Receivers (src)
Returns:
the iterator

listReceivers

public java.util.ArrayList listReceivers()
Specified by:
listReceivers in interface Receivers (src)
Returns:
the subscriptions as an array list, this must be a clone of any internal datastructure

remove

public void remove(Subscription (src)  sub)
Description copied from interface: Receivers (src)
Remove a receiver

Specified by:
remove in interface Receivers (src)
Parameters:
sub - the receiver to remove

size

public int size()
Specified by:
size in interface Receivers (src)
Returns:
Get the number of receivers