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 FormConstructor 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActionId, setActionId
public String getAction()
ManagerAction
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public 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()
EventGeneratingAction
getActionCompleteEventClass
in interface EventGeneratingAction
ResponseEvent
Copyright © 2004–2020. All rights reserved.