Package dev.getelements.elements.rt
Interface EventService
- All Known Implementing Classes:
SimpleEventService
public interface EventService
-
Method Summary
Modifier and TypeMethodDescriptionvoidpostAsync(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Registers a newStringand set of consumers to handle the results.voidstart()Starts theEventServiceand makes it available to begin accepting tasks.voidstop()Stops theEventServiceand makes it unavailable to accept tasks.
-
Method Details
-
start
void start()Starts theEventServiceand makes it available to begin accepting tasks. -
stop
void stop()Stops theEventServiceand makes it unavailable to accept tasks. Andy pending tasks are completed with an exception and all references cleared. -
postAsync
void postAsync(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Registers a newStringand set of consumers to handle the results.- Parameters:
eventName- the event nameattributes- theAttributes.
-