org.hornetq.rest.queue.push
Class PushConsumer
java.lang.Object
org.hornetq.rest.queue.push.PushConsumer
- All Implemented Interfaces:
- org.hornetq.api.core.client.MessageHandler
- Direct Known Subclasses:
- PushSubscription
public class PushConsumer
- extends java.lang.Object
- implements org.hornetq.api.core.client.MessageHandler
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Constructor Summary |
PushConsumer(org.hornetq.api.core.client.ClientSessionFactory factory,
java.lang.String destination,
java.lang.String id,
PushRegistration registration,
PushStore store)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registration
protected PushRegistration registration
factory
protected org.hornetq.api.core.client.ClientSessionFactory factory
session
protected org.hornetq.api.core.client.ClientSession session
consumer
protected org.hornetq.api.core.client.ClientConsumer consumer
destination
protected java.lang.String destination
id
protected java.lang.String id
strategy
protected PushStrategy strategy
store
protected PushStore store
PushConsumer
public PushConsumer(org.hornetq.api.core.client.ClientSessionFactory factory,
java.lang.String destination,
java.lang.String id,
PushRegistration registration,
PushStore store)
getRegistration
public PushRegistration getRegistration()
getDestination
public java.lang.String getDestination()
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
disableFromFailure
public void disableFromFailure()
onMessage
public void onMessage(org.hornetq.api.core.client.ClientMessage clientMessage)
- Specified by:
onMessage
in interface org.hornetq.api.core.client.MessageHandler
Copyright © 2011. All Rights Reserved.