Interface EventSourceRegistry
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EventSourceTopology
,OSGiEventSourceRegistry
@Deprecated(forRemoval=true) public interface EventSourceRegistry extends AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.EventSourceRegistry is used to registerEventSource
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T extends EventSource>
EventSourceRegistration<T>registerEventSource(T eventSource)
Deprecated, for removal: This API element is subject to removal in a future version.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)
Deprecated, for removal: This API element is subject to removal in a future version.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()
.
-
-