org.jboss.messaging.core
Interface Receiver

All Known Subinterfaces:
Channel, CoreDestination
All Known Implementing Classes:
ChannelSupport, DistributedPipe, Queue, RemoteQueue, ServerConsumerEndpoint, Topic

public interface Receiver

A component that handles routable instances. Handling means consumption or synchronous/asynchronous forwarding to another receiver(s).

Version:
$Revision: 538 $ $Id: Receiver.java 538 2005-12-22 20:40:15Z timfox $
Author:
Ovidiu Feodorov, Tim Fox

Method Summary
 Delivery handle(DeliveryObserver observer, Routable routable, Transaction tx)
          A receiver can return an active, "done" or null delivery.
 

Method Detail

handle

public Delivery handle(DeliveryObserver observer,
                       Routable routable,
                       Transaction tx)
A receiver can return an active, "done" or null delivery. The method returns null in case the receiver doesn't accept the message. The return value is unspecified when the message is submitted in the context of a transaction (tx not null).

Parameters:
observer - - the component the delivery should be acknowledged to.
See Also:
Delivery, DeliveryObserver


Copyright © 2006 JBoss Inc. All Rights Reserved.