|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.tx.Transaction
public class Transaction
Represents transaction.
| Field Summary | |
|---|---|
protected int |
id
|
| Constructor Summary | |
|---|---|
protected |
Transaction(TransactionManager txManager)
Create new transaction executor. |
| Method Summary | |
|---|---|
int |
find(Text name,
MgcpEndpoint[] endpoints)
Finds endpoints with specified name pattern. |
MgcpCall |
getCall(Text id,
boolean isNew)
|
int |
getId()
|
Exception |
getLastError()
Gets the last observed error. |
MgcpProvider |
getProvider()
Provides access to the MGCP provider. |
long |
getTime()
Provides access to the wall clock. |
protected int |
nextID()
|
void |
onComplete()
Called when action terminates execution normally. |
void |
onFailure(Exception e)
Called when action execution terminates abnormally |
void |
onRollback()
Called when action was rolled back |
protected void |
process(Action action)
|
void |
process(MgcpEvent event)
Handles event. |
org.mobicents.media.server.scheduler.Scheduler |
scheduler()
Gets the access to the scheduler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
| Constructor Detail |
|---|
protected Transaction(TransactionManager txManager)
transactions - pool of the transaction objects.Controller - the controller instance.| Method Detail |
|---|
public org.mobicents.media.server.scheduler.Scheduler scheduler()
public int getId()
public MgcpProvider getProvider()
public MgcpCall getCall(Text id,
boolean isNew)
public int find(Text name,
MgcpEndpoint[] endpoints)
throws UnknownEndpointException
name - the endpoint name pattern. *endpoints - array for search result
UnknownEndpointException - if name pattern was wrong.public Exception getLastError()
public long getTime()
public void process(MgcpEvent event)
event - the event to handleprotected void process(Action action)
protected int nextID()
public void onComplete()
ActionListener
onComplete in interface ActionListenerpublic void onFailure(Exception e)
ActionListener
onFailure in interface ActionListenere - the exception cause failurepublic void onRollback()
ActionListener
onRollback in interface ActionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||