Package com.tailf.dp
Class DpActionTrans
Object
Thread
com.tailf.dp.DpTrans
com.tailf.dp.DpActionTrans
- All Implemented Interfaces:
Runnable
The action transaction context. Each action transaction is running in
separate thread.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionSetTimeout
(int timeoutSeconds) Some action callbacks may require a significantly longer execution time than others, and this time may not even be possible to determine statically (e.g.int
Returns the current state of this action transaction.int
void
run()
Runs the thread.Methods inherited from class com.tailf.dp.DpTrans
accumulated, dataSetTimeout, getDBName, getDeviceType, getDevNo, getDp, getMode, getNsList, getOpaque, getSecondaryIndex, getSocket, getTransaction, getTransactionUserOpaque, getUserInfo, getWorkerSocket, honorFilter, isHideInactive, setSocket, setTransactionUserOpaque
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
STATE_NONE
public static final int STATE_NONE- See Also:
-
STATE_INIT
public static final int STATE_INIT- See Also:
-
STATE_ACTION
public static final int STATE_ACTION- See Also:
-
STATE_DELAYED
public static final int STATE_DELAYED- See Also:
-
STATE_ABORTED
public static final int STATE_ABORTED- See Also:
-
-
Method Details
-
getActionState
public int getActionState()Returns the current state of this action transaction. This can be one of:- Returns:
- action state
-
run
public void run()Runs the thread. -
actionSetTimeout
Some action callbacks may require a significantly longer execution time than others, and this time may not even be possible to determine statically (e.g. a file download). In such cases the /confdConfig/capi/queryTimeout setting in confd.conf may be insufficient, and this function can be used to extend (or shorten) the timeout for the current callback invocation. The timeout is given in seconds from the point in time when the function is called.- Parameters:
timeoutSeconds
-- Throws:
IOException
DpCallbackException
-
getActionPoint
-
getAPIndex
public int getAPIndex()
-