Package com.tick42.glue.internal.windows
Class EventSupport<T,E extends GlueEvent<T>>
java.lang.Object
com.tick42.glue.internal.windows.EventSupport<T,E>
- All Implemented Interfaces:
AsynchronousCloseable,AutoCloseable
- Direct Known Subclasses:
WindowChannelEventSupport
public class EventSupport<T,E extends GlueEvent<T>> extends Object implements AsynchronousCloseable
-
Constructor Summary
Constructors Constructor Description EventSupport(ReifiedType<E> eventType) -
Method Summary
Modifier and Type Method Description CompletionStage<Void>closeAsync()Initiates a shutdown.voidemit(E e)GlueEvent.Subscription<E>on(GlueEvent.Listener<? super E> listener)CompletionStage<Void>onClose()Return a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tick42.glue.core.AsynchronousCloseable
close
-
Constructor Details
-
EventSupport
-
-
Method Details
-
on
-
emit
-
onClose
Description copied from interface:AsynchronousCloseableReturn a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.- Specified by:
onClosein interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-
closeAsync
Description copied from interface:AsynchronousCloseableInitiates a shutdown.- Specified by:
closeAsyncin interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-