-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,no.ks.kes.lib.EventSubscription,no.ks.kes.test.EventListener
public final class TestEventSubscription implements EventSubscription, EventListener, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description TestEventSubscription(TestEventSubscriberFactory factory, Function1<EventWrapper<EventData<?>>, Unit> onEvent, Function1<TestEventSubscription, Unit> closeHandler)
-
Method Summary
Modifier and Type Method Description LonglastProcessedEvent()UniteventAdded(Event<?> eventWrapper)Unitclose()-
-
Constructor Detail
-
TestEventSubscription
TestEventSubscription(TestEventSubscriberFactory factory, Function1<EventWrapper<EventData<?>>, Unit> onEvent, Function1<TestEventSubscription, Unit> closeHandler)
-
-
Method Detail
-
lastProcessedEvent
Long lastProcessedEvent()
-
eventAdded
Unit eventAdded(Event<?> eventWrapper)
-
-
-
-