public class DbGetAction extends AbstractManagerAction implements EventGeneratingAction
If an entry is found a DBGetResponseEvent is sent by Asterisk containing the value, otherwise a ManagerError indicates that no entry matches.
It is implemented in main/db.c.
Available since Asterisk 1.2
DbGetResponseEvent,
Serialized Form| Constructor and Description |
|---|
DbGetAction()
Creates a new empty DbGetAction.
|
DbGetAction(String family,
String key)
Creates a new DbGetAction that retrieves the value of the database entry
with the given key in the given family.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of the action for example "Hangup".
|
Class<? extends ResponseEvent> |
getActionCompleteEventClass()
Returns the event type that indicates that Asterisk is finished sending
response events for this action.
|
String |
getFamily()
Returns the family of the key.
|
String |
getKey()
Returns the the key of the entry to retrieve.
|
void |
setFamily(String family)
Sets the family of the key.
|
void |
setKey(String key)
Sets the key of the entry to retrieve.
|
getActionId, setActionId, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActionId, setActionIdpublic String getAction()
ManagerActiongetAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getFamily()
public void setFamily(String family)
family - the family of the key.public String getKey()
public void setKey(String key)
key - the key of the entry to retrieve.public Class<? extends ResponseEvent> getActionCompleteEventClass()
EventGeneratingActiongetActionCompleteEventClass in interface EventGeneratingActionResponseEventCopyright © 2004–2024. All rights reserved.