org.jboss.jms.server.endpoint.advised
Class ConsumerAdvised

java.lang.Object
  extended byorg.jboss.jms.server.endpoint.advised.AdvisedSupport
      extended byorg.jboss.jms.server.endpoint.advised.ConsumerAdvised
All Implemented Interfaces:
Closeable, ConsumerEndpoint

public class ConsumerAdvised
extends AdvisedSupport
implements ConsumerEndpoint

The server-side advised instance corresponding to a Consumer. It is bound to the AOP Dispatcher's map.

Version:
$Revision: 1323 $ $Id: ConsumerAdvised.java 1323 2006-09-20 00:48:57Z ovidiu.feodorov@jboss.com $
Author:
Tim Fox, Ovidiu Feodorov

Field Summary
protected  ConsumerEndpoint endpoint
           
 
Constructor Summary
ConsumerAdvised(ConsumerEndpoint endpoint)
           
 
Method Summary
 void close()
          Close the instance
 void closing()
          Tell the instance to prepare to close
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getEndpoint()
           
 int hashCode()
           
 boolean isClosed()
           
 void more()
          If the client buffer has previously become full because the server was sending at a faster rate than the client could consume, then the server will stop sending messages.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

endpoint

protected ConsumerEndpoint endpoint
Constructor Detail

ConsumerAdvised

public ConsumerAdvised(ConsumerEndpoint endpoint)
Method Detail

close

public void close()
           throws JMSException
Description copied from interface: Closeable
Close the instance

Specified by:
close in interface Closeable
Throws:
JMSException

closing

public void closing()
             throws JMSException
Description copied from interface: Closeable
Tell the instance to prepare to close

Specified by:
closing in interface Closeable
Throws:
JMSException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface Closeable

more

public void more()
          throws JMSException
Description copied from interface: ConsumerEndpoint
If the client buffer has previously become full because the server was sending at a faster rate than the client could consume, then the server will stop sending messages. When the client has emptied the buffer it then needs to inform the server that it can receive more messages by calling this method

Specified by:
more in interface ConsumerEndpoint
Throws:
JMSException

getEndpoint

public java.lang.Object getEndpoint()
Specified by:
getEndpoint in class AdvisedSupport

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

toString

public java.lang.String toString()


Copyright © 2006 JBoss Inc. All Rights Reserved.