public class RedisMessenger extends java.lang.Object implements Connector
| Constructor and Description |
|---|
RedisMessenger(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
get(XQueue xq)
It gets items from a Redis List specified by qName and puts
them to the XQ.
|
java.lang.String |
getOperation() |
java.lang.StringBuffer |
getResult(int type,
java.util.Collection collection) |
java.lang.StringBuffer |
getResult(int type,
java.util.Map map) |
java.lang.StringBuffer |
getResult(int type,
java.lang.String[] list) |
java.lang.String |
getURI() |
boolean |
isConnected() |
void |
pub(XQueue xq) |
void |
put(XQueue xq) |
void |
query(XQueue xq)
It listens to an XQueue for incoming JMS messages and extracts the
Redis query command from each message.
|
java.lang.String |
reconnect()
reconnects and returns null upon sucess or error msg otherwise
|
void |
sub(XQueue xq)
It subscribes to a channel specified by qName and puts messages
to the XQ.
|
void |
update(XQueue xq)
It listens to an XQueue for incoming JMS messages and extracts the
Redis update command from each message.
|
public void get(XQueue xq) throws java.io.IOException
java.io.IOExceptionpublic void sub(XQueue xq) throws java.io.IOException
java.io.IOExceptionpublic void put(XQueue xq) throws TimeoutException, java.io.IOException
TimeoutExceptionjava.io.IOExceptionpublic void pub(XQueue xq) throws TimeoutException, java.io.IOException
TimeoutExceptionjava.io.IOExceptionpublic void query(XQueue xq) throws java.io.IOException, TimeoutException
java.io.IOExceptionTimeoutExceptionpublic void update(XQueue xq) throws java.io.IOException, TimeoutException
java.io.IOExceptionTimeoutExceptionpublic java.lang.StringBuffer getResult(int type,
java.util.Map map)
public java.lang.StringBuffer getResult(int type,
java.util.Collection collection)
public java.lang.StringBuffer getResult(int type,
java.lang.String[] list)
public java.lang.String reconnect()
public java.lang.String getOperation()
public boolean isConnected()
isConnected in interface Connector