站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

ReceiversImplArrayList (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq.server
Class ReceiversImplArrayList

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

public class ReceiversImplArrayList
extends Object
implements Receivers

The default implementation of the Receivers interface.

Version:
$Revision: 1.2 $
Author:
Adrian Brock

Constructor Summary
ReceiversImplArrayList()
           
 
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()
           
 
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 sub)
Description copied from interface: Receivers
Add a receiver

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

iterator

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

Specified by:
iterator in interface Receivers
Returns:
the iterator

listReceivers

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

remove

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

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

size

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.