public class SubscriptionResource extends QueueConsumer implements Subscription
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
durable |
protected long |
timeout |
autoAck, closed, consumer, destination, factory, id, lastConsumed, lastPing, previousIndex, selector, serviceManager, session| Constructor and Description |
|---|
SubscriptionResource(ClientSessionFactory factory,
String destination,
String id,
DestinationServiceManager serviceManager,
String selector,
boolean durable,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeout() |
boolean |
isDeleteWhenIdle() |
boolean |
isDurable() |
void |
setDeleteWhenIdle(boolean deleteWhenIdle) |
void |
setDurable(boolean durable) |
void |
setTimeout(long timeout) |
checkIndexAndPoll, createSession, getConsumeIndex, getId, getLastPingTime, getMessageResponse, getServiceManager, isClosed, ping, poll, pollWithIndex, receive, receiveFromConsumer, setConsumeNextLink, setMessageResponseLinks, setPollTimeoutLinks, setServiceManager, setSessionLink, shutdownpublic SubscriptionResource(ClientSessionFactory factory, String destination, String id, DestinationServiceManager serviceManager, String selector, boolean durable, long timeout) throws HornetQException
HornetQExceptionpublic boolean isDurable()
isDurable in interface Subscriptionpublic void setDurable(boolean durable)
setDurable in interface Subscriptionpublic long getTimeout()
getTimeout in interface Subscriptionpublic void setTimeout(long timeout)
setTimeout in interface Subscriptionpublic boolean isDeleteWhenIdle()
isDeleteWhenIdle in interface Subscriptionpublic void setDeleteWhenIdle(boolean deleteWhenIdle)
setDeleteWhenIdle in interface SubscriptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.