Package tilda.db
Class SequencePoll
- java.lang.Object
-
- tilda.utils.concurrent.DBPoll
-
- tilda.db.SequencePoll
-
- All Implemented Interfaces:
java.lang.Runnable
public class SequencePoll extends DBPoll
Allows managing a templorary database-level sequence with- Author:
- Laurent Hasson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SequencePoll.Handler
-
Constructor Summary
Constructors Constructor Description SequencePoll(java.lang.String PoolName, long PauseMillis, java.lang.String SequenceName, SequencePoll.Handler H)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close()
Called when the thread is closingprotected boolean
doRun(Connection C, int Count)
java.lang.String
getSequenceName()
void
init()
Initializes the connection.-
Methods inherited from class tilda.utils.concurrent.DBPoll
getConnectionId, run, terminate
-
-
-
-
Constructor Detail
-
SequencePoll
public SequencePoll(java.lang.String PoolName, long PauseMillis, java.lang.String SequenceName, SequencePoll.Handler H)
-
-
Method Detail
-
getSequenceName
public java.lang.String getSequenceName()
-
init
public void init() throws java.lang.Exception
Description copied from class:DBPoll
Initializes the connection. Must be called before the class is used either directly by calling the run() method, or through a Thread.
-
close
protected void close() throws java.lang.Exception
Description copied from class:DBPoll
Called when the thread is closing
-
doRun
protected boolean doRun(Connection C, int Count) throws java.lang.Exception
-
-