tibasAction_GetType()

Returns the action type for a specified action.

Declaration

tibas_status tibasAction_GetType
     (tibasAction       action,
      tibas_actionType* actionType)

Parameters

Parameter Description
action The Action object on which the operation is performed.
actionType Where the Action's type will be returned.

Remarks

Use the tibasAction_GetType() function to determine the action type for a specified action. Your persister function can use the action type to determine what steps to take to persist data.

The action type can be one of the following:

TIBAS_ACTION_OPEN
Indicates that a persister object is registered with the space.
TIBAS_ACTION_LOAD
Indicates that a persister object is registered with a space
TIBAS_ACTION_WRITE
 Indicates that a tuple stored in the space is modified (due to a put, take, or update operation).
TIBAS_ACTION_READ
Indicates that the space has a capacity set and a capacity policy of EVICT, and a request to read, lock, or take a tuple by key value did not result in a matching tuple being found in the space.
TIBAS_ACTION_CLOSE
Indicates that a persister object is stopped for a space.