io.leopard.data.queue
Class QueueRedisImpl
java.lang.Object
io.leopard.data.queue.QueueRedisImpl
- All Implemented Interfaces:
- Queue, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class QueueRedisImpl
- extends java.lang.Object
- implements Queue, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
|
Field Summary |
protected java.lang.String |
server
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected java.lang.String server
QueueRedisImpl
public QueueRedisImpl()
getServer
public java.lang.String getServer()
setServer
public void setServer(java.lang.String server)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
publish
public void publish(java.lang.String routingKey,
java.lang.String message)
- Specified by:
publish in interface Queue
subscribe
public void subscribe(java.lang.String queue,
IConsumer callback)
- Specified by:
subscribe in interface Queue
Copyright © 2014-2015. All Rights Reserved.