Interface EventSourceRegistry
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EventSourceTopology
public interface EventSourceRegistry extends AutoCloseable
EventSourceRegistry is used to registerEventSource
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends EventSource>
EventSourceRegistration<T>registerEventSource(T eventSource)
Registers the given EventSource for public consumption.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
registerEventSource
<T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource)
Registers the given EventSource for public consumption. The EventSource is associated with the node identified viaEventSource.getSourceNodeKey()
.- Parameters:
eventSource
- the EventSource instance to register- Returns:
- an EventSourceRegistration instance that is used to unregister the EventSource
via
EventSourceRegistration.close()
.
-
-