|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.jms.server.endpoint.ServerConsumerEndpoint
Concrete implementation of ConsumerEndpoint. Lives on the boundary between Messaging Core and the JMS Facade.
| Constructor Summary | |
protected |
ServerConsumerEndpoint(int id,
Channel channel,
ServerSessionEndpoint sessionEndpoint,
java.lang.String selector,
boolean noLocal,
JBossDestination dest,
int prefetchSize,
CoreDestination dlq)
|
| Method Summary | |
boolean |
accept(Routable r)
Tests whether the routable should be accepted. |
protected void |
acknowledge(long messageID)
|
protected void |
acknowledgeTransactionally(long messageID,
Transaction tx)
|
protected void |
cancelDelivery(java.lang.Long messageID,
int deliveryCount)
|
void |
close()
Close the instance |
void |
closing()
Tell the instance to prepare to close |
JBossDestination |
getDestination()
|
int |
getId()
|
ServerSessionEndpoint |
getSessionEndpoint()
|
Delivery |
handle(DeliveryObserver observer,
Routable reference,
Transaction tx)
A receiver can return an active, "done" or null delivery. |
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. |
protected void |
promptDelivery()
|
protected void |
remove()
Actually remove the consumer and clear up any deliveries it may have This is called by the session on session.close() We can get rid of this when we store the deliveries on the session |
protected void |
sendToDLQ(java.lang.Long messageID,
Transaction tx)
|
protected void |
start()
|
protected void |
stop()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected ServerConsumerEndpoint(int id,
Channel channel,
ServerSessionEndpoint sessionEndpoint,
java.lang.String selector,
boolean noLocal,
JBossDestination dest,
int prefetchSize,
CoreDestination dlq)
throws InvalidSelectorException
| Method Detail |
public Delivery handle(DeliveryObserver observer,
Routable reference,
Transaction tx)
Receiver
handle in interface Receiverobserver - - the component the delivery should be acknowledged to.Delivery,
DeliveryObserverpublic boolean accept(Routable r)
Filter
accept in interface Filter
public void closing()
throws JMSException
Closeable
closing in interface CloseableJMSException
public void close()
throws JMSException
Closeable
close in interface CloseableJMSExceptionpublic boolean isClosed()
isClosed in interface Closeable
public void more()
throws JMSException
ConsumerEndpoint
more in interface ConsumerEndpointJMSExceptionpublic java.lang.String toString()
public JBossDestination getDestination()
public ServerSessionEndpoint getSessionEndpoint()
public int getId()
protected void acknowledgeTransactionally(long messageID,
Transaction tx)
throws java.lang.Throwable
java.lang.Throwable
protected void acknowledge(long messageID)
throws java.lang.Throwable
java.lang.Throwable
protected void remove()
throws java.lang.Throwable
java.lang.Throwableprotected void promptDelivery()
protected void sendToDLQ(java.lang.Long messageID,
Transaction tx)
throws java.lang.Throwable
java.lang.Throwable
protected void cancelDelivery(java.lang.Long messageID,
int deliveryCount)
throws java.lang.Throwable
java.lang.Throwableprotected void start()
protected void stop()
throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||