org.hornetq.rest.topic
Class SubscriptionResource
java.lang.Object
org.hornetq.rest.queue.QueueConsumer
org.hornetq.rest.topic.SubscriptionResource
- All Implemented Interfaces:
- Subscription
public class SubscriptionResource
- extends QueueConsumer
- implements Subscription
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
| Fields inherited from class org.hornetq.rest.queue.QueueConsumer |
autoAck, closed, consumer, destination, factory, id, lastConsumed, lastPing, previousIndex, selector, serviceManager, session |
|
Constructor Summary |
SubscriptionResource(org.hornetq.api.core.client.ClientSessionFactory factory,
java.lang.String destination,
java.lang.String id,
DestinationServiceManager serviceManager,
java.lang.String selector,
boolean durable,
long timeout)
|
| Methods inherited from class org.hornetq.rest.queue.QueueConsumer |
checkIndexAndPoll, createSession, getConsumeIndex, getId, getLastPingTime, getMessageResponse, getServiceManager, isClosed, ping, poll, pollWithIndex, receive, receiveFromConsumer, setConsumeNextLink, setMessageResponseLinks, setPollTimeoutLinks, setServiceManager, setSessionLink, shutdown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
durable
protected boolean durable
timeout
protected long timeout
SubscriptionResource
public SubscriptionResource(org.hornetq.api.core.client.ClientSessionFactory factory,
java.lang.String destination,
java.lang.String id,
DestinationServiceManager serviceManager,
java.lang.String selector,
boolean durable,
long timeout)
throws org.hornetq.api.core.HornetQException
- Throws:
org.hornetq.api.core.HornetQException
isDurable
public boolean isDurable()
- Specified by:
isDurable in interface Subscription
setDurable
public void setDurable(boolean durable)
- Specified by:
setDurable in interface Subscription
getTimeout
public long getTimeout()
- Specified by:
getTimeout in interface Subscription
setTimeout
public void setTimeout(long timeout)
- Specified by:
setTimeout in interface Subscription
isDeleteWhenIdle
public boolean isDeleteWhenIdle()
- Specified by:
isDeleteWhenIdle in interface Subscription
setDeleteWhenIdle
public void setDeleteWhenIdle(boolean deleteWhenIdle)
- Specified by:
setDeleteWhenIdle in interface Subscription
Copyright © 2011. All Rights Reserved.