Package dev.getelements.elements.rt
Interface EventService
- All Known Implementing Classes:
SimpleEventService
public interface EventService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postAsync
(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Registers a newString
and set of consumers to handle the results.void
start()
Starts theEventService
and makes it available to begin accepting tasks.void
stop()
Stops theEventService
and makes it unavailable to accept tasks.
-
Method Details
-
start
void start()Starts theEventService
and makes it available to begin accepting tasks. -
stop
void stop()Stops theEventService
and 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 newString
and set of consumers to handle the results.- Parameters:
eventName
- the event nameattributes
- theAttributes
.
-