io.leopard.data.queue
Class QueueRedisImpl

java.lang.Object
  extended by 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
           
 
Constructor Summary
QueueRedisImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.lang.String getServer()
           
 void publish(java.lang.String routingKey, java.lang.String message)
           
 void setServer(java.lang.String server)
           
 void subscribe(java.lang.String queue, IConsumer callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected java.lang.String server
Constructor Detail

QueueRedisImpl

public QueueRedisImpl()
Method Detail

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.