public class ListenerDataAccess
extends java.lang.Object
Constructor and Description |
---|
ListenerDataAccess(java.lang.String cacheName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key)
Retrieves the value which is a Queue corresponding to the key and pops
the element from the head of Queue & returns the same
|
static ListenerDataAccess |
getListenerDataStore()
Creates an new Instance of ListenerDataAccess with the cacheName as
"ListenerDataStore" to store all the incoming/received messages by the
listener
|
void |
put(java.lang.String key,
java.lang.Object message)
Stores the received message to the tail of a Queue and stores the Queue as
the value which can be identified by the key
It is advised to use the key as the namespace of the created listener.
|
public ListenerDataAccess(java.lang.String cacheName) throws com.wm.pkg.art.error.DetailedException
com.wm.pkg.art.error.DetailedException
public java.lang.Object get(java.lang.String key) throws com.wm.pkg.art.error.DetailedException
key
- An uniquely identified key to retrieve the message Queue from store.com.wm.pkg.art.error.DetailedException
public static ListenerDataAccess getListenerDataStore() throws com.wm.pkg.art.error.DetailedException
com.wm.pkg.art.error.DetailedException
public void put(java.lang.String key, java.lang.Object message) throws com.wm.pkg.art.error.DetailedException
Stores the received message to the tail of a Queue and stores the Queue as the value which can be identified by the key It is advised to use the key as the namespace of the created listener.
key
- An uniquely identified key to store the incoming/received messages.message
- A message which is received by the listenercom.wm.pkg.art.error.DetailedException
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.