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 interfaceSequencePoll.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 voidclose()Called when the thread is closingprotected booleandoRun(Connection C, int Count)java.lang.StringgetSequenceName()voidinit()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.ExceptionDescription copied from class:DBPollInitializes 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.ExceptionDescription copied from class:DBPollCalled when the thread is closing
-
doRun
protected boolean doRun(Connection C, int Count) throws java.lang.Exception
-
-