Package dev.getelements.elements.rt
Class SimpleEventService
java.lang.Object
dev.getelements.elements.rt.SimpleEventService
- All Implemented Interfaces:
EventService
-
Constructor Summary
Constructors -
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
setManifestLoader
(ManifestLoader manifestLoader) void
setRetainedHandlerService
(RetainedHandlerService retainedHandlerService) void
start()
Starts theEventService
and makes it available to begin accepting tasks.void
stop()
Stops theEventService
and makes it unavailable to accept tasks.
-
Constructor Details
-
SimpleEventService
public SimpleEventService()
-
-
Method Details
-
start
public void start()Description copied from interface:EventService
Starts theEventService
and makes it available to begin accepting tasks.- Specified by:
start
in interfaceEventService
-
stop
public void stop()Description copied from interface:EventService
Stops theEventService
and makes it unavailable to accept tasks. Andy pending tasks are completed with an exception and all references cleared.- Specified by:
stop
in interfaceEventService
-
postAsync
public void postAsync(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Description copied from interface:EventService
Registers a newString
and set of consumers to handle the results.- Specified by:
postAsync
in interfaceEventService
- Parameters:
eventName
- the event nameattributes
- theAttributes
.
-
getRetainedHandlerService
-
setRetainedHandlerService
-
getManifestLoader
-
setManifestLoader
-