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

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


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


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