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) |
doShutdown, doStartup, getDescription, getDisplayName, getEngine, getInternalService, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setDisplayName, setEngine, 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, getDisplayName, getName, setDescription, setDisplayName, 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 EventSchedulerCopyright © 2016–2018 Softelnet. All rights reserved.