public class PooledSessionTaskDispatcher extends PooledTaskDispatcher
AbstractPooledTaskDispatcher.PooledTaskListenertaskListener, taskMap| Constructor and Description |
|---|
PooledSessionTaskDispatcher(SessionInfo sessionInfo,
int poolSize,
String name,
boolean useMutexLocking,
long sleepInterval)
Creates a non-supervising pooled db task dispatcher.
|
PooledSessionTaskDispatcher(SessionInfo sessionInfo,
int poolSize,
String name,
boolean useMutexLocking,
long sleepInterval,
boolean supervised,
long deadInterval)
Creates a pooled db task dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected DefaultSessionTaskDispatcher |
createDispatcher(int index) |
protected Session |
createSession()
Creates a new db session.
|
protected DaemonSupervisor |
createSupervisor() |
Session[] |
getDbSessions()
Gets the db sessions.
|
SessionInfo |
getSessionInfo()
Gets the user info.
|
getDeadInterval, getDispatchers, getNextDispatcher, getPoolSize, getShutdownIdleTimeout, getTask, isAlive, isSupervised, isTerminationRequested, lock, requestTermination, setDeadInterval, setShutdownIdleTimeout, start, terminate, toDiagnosticString, unlockaddTask, addTaskAndWait, addTaskListener, createTaskListener, fireCompleted, fireStarted, getAllTasks, getName, getQueueSize, getSleepInterval, isInstanceOfTaskPending, isQueueEmpty, isTaskPending, isUsingMutexLocking, removeTask, removeTaskListener, setName, setSleepInterval, setUsingMutexLocking, waitForTaskpublic PooledSessionTaskDispatcher(SessionInfo sessionInfo, int poolSize, String name, boolean useMutexLocking, long sleepInterval, boolean supervised, long deadInterval)
sessionInfo - the session infopoolSize - the fixed pool sizename - the pool nameuseMutexLocking - true use a mutex for locking, else just a countersleepInterval - keep alive in millisecondssupervised - true to use a DaemonSupervisor for each dispatcherdeadInterval - interval in milliseconds to detect a dead dispatcher, 0 to disable detection (ignored if supervised = false)public PooledSessionTaskDispatcher(SessionInfo sessionInfo, int poolSize, String name, boolean useMutexLocking, long sleepInterval)
sessionInfo - the session infopoolSize - the pool sizename - the pool nameuseMutexLocking - true use a mutex for locking, else just a countersleepInterval - keep alive in millisecondspublic Session[] getDbSessions()
public SessionInfo getSessionInfo()
protected Session createSession()
protected DefaultSessionTaskDispatcher createDispatcher(int index)
createDispatcher in class PooledTaskDispatcherprotected DaemonSupervisor createSupervisor()
createSupervisor in class PooledTaskDispatcherTentackle - distributed, domain- and model-driven