Package dev.getelements.elements.rt
Class SimpleEventContext
java.lang.Object
dev.getelements.elements.rt.SimpleEventContext
- All Implemented Interfaces:
EventContext
-
Field Summary
Fields inherited from interface dev.getelements.elements.rt.EventContext
EVENT_TIMEOUT_MSEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongvoidpostAsync(String eventName, Attributes attributes, Object... args) voidsetEventService(EventService eventService) voidsetTimeout(long timeout) voidstart()Starts thisEventContext.voidstop()Stops thisEventContext.
-
Constructor Details
-
SimpleEventContext
public SimpleEventContext()
-
-
Method Details
-
start
public void start()Description copied from interface:EventContextStarts thisEventContext.- Specified by:
startin interfaceEventContext
-
stop
public void stop()Description copied from interface:EventContextStops thisEventContext.- Specified by:
stopin interfaceEventContext
-
postAsync
- Specified by:
postAsyncin interfaceEventContext
-
getEventService
-
setEventService
-
getTimeout
public long getTimeout() -
setTimeout
@Inject public void setTimeout(@Named("dev.getelements.elements.rt.handler.timeout.event") long timeout)
-