Package | Description |
---|---|
com.tailf.maapi |
MAAPI is an API which provides full access to the systems internal
transaction engine.
|
Modifier and Type | Method and Description |
---|---|
CommitQueueResult |
Maapi.commitQueueResult(int tid,
int timeout)
Deprecated.
Use
Maapi.applyTransParams(int, boolean, CommitParams) instead.
This method must be called if applyTrans() or prepareTrans() was
called, and one of the flags Maapi.COMMIT_NCS_COMMIT_QUEUE_ASYNC or
Maapi.COMMIT_NCS_COMMIT_QUEUE_SYNC was set, and must not be called
otherwise.
If the transaction did not result in a commit queue entry (e.g.,
it didn't involve any devices) the function returns a
CommitQueueResult with its status set to NCS_COMMIT_QUEUE_NONE.
Otherwise, if Maapi.COMMIT_NCS_COMMIT_QUEUE_ASYNC was set, the
function returns a CommitQueueResult with its status set to
NCS_COMMIT_QUEUE_ASYNC, and its queue_id set to the commit queue id.
Otherwise, if Maapi.COMMIT_NCS_COMMIT_QUEUE_SYNC was set, the
function waits at most timeout seconds for the commit queue
item to be sent to the devices. If the result was successful,
it returns a CommitQueueResult with its status set to
NCS_COMMIT_QUEUE_SYNC. If the timer expires, it returns a
CommitQueueResult with its status set to
NCS_COMMIT_QUEUE_TIMEOUT, and its queue_id set to the commit
queue id. If the result was unsuccessful, an exception is raised.
If any of the devices in the queue item returns an error
the status is set to NCS_COMMIT_QUEUE_FAILED. If the queue item
is deleted before execution the status is set to
NCS_COMMIT_QUEUE_DELETED. |