| Constructor and Description |
|---|
JobEventManager(JobEventStore store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasJobEvents()
Returns whether the store is empty.
|
boolean |
replay(JobEventReplayHandler replayHandler)
Replay all job events that have been record.
|
void |
start()
Start the job event manager.
|
void |
stop(boolean clear)
Stop the job event manager.
|
void |
writeEvent(JobEvent event,
boolean cutBlock)
Write a job event asynchronously.
|
public JobEventManager(JobEventStore store)
public void stop(boolean clear)
NOTE: This method maybe invoked multiply times.
public void writeEvent(JobEvent event, boolean cutBlock)
event - The job event that will be recorded.cutBlock - whether start a new event block after write this event.public boolean replay(JobEventReplayHandler replayHandler)
replayHandler - handler which will process the job event.true if replay successfully, false otherwise.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.