|
|||||||||||
| 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)
|
| Method Summary | |
boolean |
accept(Routable r)
Tests whether the routable should be accepted. |
protected void |
acknowledgeAll()
|
protected void |
acknowledgeTransactionally(long messageID,
Transaction tx)
|
void |
activate()
|
protected void |
cancelAllDeliveries()
|
void |
cancelDeliveries(java.util.List messageIDs)
|
void |
cancelDelivery(long messageID)
|
void |
close()
Close the instance |
void |
closing()
Tell the instance to prepare to close |
long |
deactivate()
|
protected void |
disconnect()
Disconnect this consumer from the Channel that feeds it. |
JBossDestination |
getDestination()
|
MessageProxy |
getMessageNow(boolean wait)
We attempt to get the message directly fron the channel first. |
ServerSessionEndpoint |
getSessionEndpoint()
|
Delivery |
handle(DeliveryObserver observer,
Routable reference,
Transaction tx)
A receiver can return an active, "done" or null delivery. |
protected boolean |
isReady()
|
protected void |
promptDelivery()
|
protected void |
remove()
Actually remove the consumer and clear up any deliveries it may have |
protected void |
removeDelivery(java.lang.String messageID)
|
protected void |
setStarted(boolean started)
|
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)
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 CloseableJMSException
public void cancelDelivery(long messageID)
throws JMSException
cancelDelivery in interface ConsumerEndpointJMSException
public void cancelDeliveries(java.util.List messageIDs)
throws JMSException
cancelDeliveries in interface ConsumerEndpointJMSException
public MessageProxy getMessageNow(boolean wait)
throws JMSException
getMessageNow in interface ConsumerEndpointJMSException
public long deactivate()
throws JMSException
deactivate in interface ConsumerEndpointJMSException
public void activate()
throws JMSException
activate in interface ConsumerEndpointJMSExceptionpublic java.lang.String toString()
public JBossDestination getDestination()
public ServerSessionEndpoint getSessionEndpoint()
protected void remove()
throws JMSException
JMSException
protected void acknowledgeAll()
throws JMSException
JMSException
protected void acknowledgeTransactionally(long messageID,
Transaction tx)
throws JMSException
JMSException
protected void removeDelivery(java.lang.String messageID)
throws JMSException
JMSException
protected void cancelAllDeliveries()
throws JMSException
JMSExceptionprotected void setStarted(boolean started)
protected void promptDelivery()
protected void disconnect()
protected boolean isReady()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||