public class Action extends Object implements org.mobicents.media.server.scheduler.TaskChainListener
| Modifier and Type | Field and Description |
|---|---|
protected ActionListener |
listener |
| Modifier | Constructor and Description |
|---|---|
protected |
Action()
Creates new instance of the action.
|
| Modifier and Type | Method and Description |
|---|---|
MgcpEvent |
getEvent()
Gets the event caused this action.
|
void |
onException(Exception e)
(Non Java-doc.)
|
void |
onTermination()
(Non Java-doc.)
|
void |
rollback()
Rollback previously made changes.
|
void |
setActionHandler(org.mobicents.media.server.scheduler.TaskChain handler)
Assigns action handler.
|
protected void |
setEvent(MgcpEvent event)
Assigns the event caused this action.
|
void |
setRollbackHandler(org.mobicents.media.server.scheduler.Task handler)
Assigns rollback handler
|
void |
start(Transaction tx)
Starts action execution.
|
protected Transaction |
transaction() |
protected ActionListener listener
protected void setEvent(MgcpEvent event)
event - the object describes the eventpublic MgcpEvent getEvent()
public void setActionHandler(org.mobicents.media.server.scheduler.TaskChain handler)
handler - action handlerpublic void setRollbackHandler(org.mobicents.media.server.scheduler.Task handler)
handler - rollback handler.public void start(Transaction tx)
context - transaction contextpublic void rollback()
public void onTermination()
onTermination in interface org.mobicents.media.server.scheduler.TaskChainListenerTaskChainListener.onTermination()public void onException(Exception e)
onException in interface org.mobicents.media.server.scheduler.TaskChainListenerorg.mobicents.media.server.scheduler.TaskChainListener#onException()protected Transaction transaction()
Copyright © 2014 TeleStax, Inc.. All Rights Reserved.