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 TypeMethodDescriptionvoidpostAsync(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Registers a newStringand set of consumers to handle the results.voidsetManifestLoader(ManifestLoader manifestLoader) voidsetRetainedHandlerService(RetainedHandlerService retainedHandlerService) voidstart()Starts theEventServiceand makes it available to begin accepting tasks.voidstop()Stops theEventServiceand makes it unavailable to accept tasks.
-
Constructor Details
-
SimpleEventService
public SimpleEventService()
-
-
Method Details
-
start
public void start()Description copied from interface:EventServiceStarts theEventServiceand makes it available to begin accepting tasks.- Specified by:
startin interfaceEventService
-
stop
public void stop()Description copied from interface:EventServiceStops theEventServiceand makes it unavailable to accept tasks. Andy pending tasks are completed with an exception and all references cleared.- Specified by:
stopin interfaceEventService
-
postAsync
public void postAsync(String eventName, Attributes attributes, long timeout, TimeUnit timeoutTimeUnit, Object... args) Description copied from interface:EventServiceRegisters a newStringand set of consumers to handle the results.- Specified by:
postAsyncin interfaceEventService- Parameters:
eventName- the event nameattributes- theAttributes.
-
getRetainedHandlerService
-
setRetainedHandlerService
-
getManifestLoader
-
setManifestLoader
-