public abstract class BaseEventScheduler extends BaseEngineModule implements EventScheduler
| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
currentEntryId
Current event scheduler entry id.
|
protected EventIdGenerator |
eventIdGenerator
Event ID generator.
|
protected EventQueue |
outQueue
Out event queue to which events will be inserted.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseEventScheduler(SpongeEngine engine,
EventQueue outQueue)
Creates a new event scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
EventIdGenerator |
getEventIdGenerator() |
protected String |
getNextEntryId() |
void |
scheduleNow(Event event)
Schedules a specified event now (inserts to the queue immediately).
|
void |
setEventIdGenerator(EventIdGenerator eventIdGenerator) |
protected void |
validateEvent(Event event) |
doShutdown, doStartup, getDescription, getEngine, getInternalService, getLabel, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setEngine, setLabel, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntries, remove, scheduleAfter, scheduleAfter, scheduleAt, scheduleAt, scheduleAtisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, setNameprotected AtomicLong currentEntryId
protected EventQueue outQueue
protected EventIdGenerator eventIdGenerator
protected BaseEventScheduler(SpongeEngine engine, EventQueue outQueue)
engine - the engine.outQueue - an output event queue.public void scheduleNow(Event event)
scheduleNow in interface EventSchedulerevent - event.protected String getNextEntryId()
public EventIdGenerator getEventIdGenerator()
public void setEventIdGenerator(EventIdGenerator eventIdGenerator)
setEventIdGenerator in interface EventSchedulerprotected void validateEvent(Event event)
Copyright © 2016–2019 Softelnet. All rights reserved.