|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Schedule
Denotes a schedule, which monitors and directs task execution.
| Field Summary | |
|---|---|
static int |
CONTINUE_NEXT
Continue with the next event. |
static int |
CONTINUE_NEXT_COMMIT
Continue with next event but commit current position. |
static int |
PROCEED
Proceed with event processing. |
static int |
QUIT
Commit current transaction and terminate task processing loop. |
| Method Summary | |
|---|---|
int |
advise(ReplEvent replEvent)
Task must call this method after extracting event but before processing to decide disposition. |
void |
commit()
Marks the last processed exception as committed. |
boolean |
isCancelled()
Returns true if the task is canceled. |
void |
setLastProcessedEvent(ReplDBMSHeader event)
Set the last processed event, which triggers checks for watches. |
void |
taskEnd()
Task must call this method before exit to tell the schedule that it has completed. |
| Field Detail |
|---|
static final int PROCEED
static final int QUIT
static final int CONTINUE_NEXT
static final int CONTINUE_NEXT_COMMIT
| Method Detail |
|---|
int advise(ReplEvent replEvent)
throws java.lang.InterruptedException
java.lang.InterruptedException - Thrown if thread is interruptedvoid taskEnd()
void setLastProcessedEvent(ReplDBMSHeader event)
throws java.lang.InterruptedException
java.lang.InterruptedException - Thrown if thread is interrupted.
void commit()
throws java.lang.InterruptedException
java.lang.InterruptedException - Thrown if thread is interrupted.boolean isCancelled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||