Uses of Interface
dev.getelements.elements.sdk.Subscription
Packages that use Subscription
Package
Description
-
Uses of Subscription in dev.getelements.elements.rt
Methods in dev.getelements.elements.rt that return SubscriptionModifier and TypeMethodDescriptionAsyncConnection.onClose(Consumer<AsyncConnection<ContextT, SocketT>> asyncConnectionConsumer) Registers aSubscriptionfor when the underlying connection was closed.AsyncConnection.onError(Consumer<AsyncConnection<ContextT, SocketT>> asyncConnectionConsumer) Registers aSubscriptionfor when a socket has encountered an error.Handles the final error result.ResultHandlerStrategy.onFinalResult(Consumer<Object> finalResult) Handles the final result.AsyncConnection.onRead(Consumer<AsyncConnection<ContextT, SocketT>> asyncConnectionConsumer) Registers aSubscriptionfor when a socket has read data.AsyncConnection.onRecycle(Consumer<AsyncConnection<ContextT, SocketT>> pooledAsyncConnectionConsumer) Subscribes to an event indicating that the connection was recycled.AsyncConnection.onWrite(Consumer<AsyncConnection<ContextT, SocketT>> asyncConnectionConsumer) Registers aSubscriptionfor when a socket is ready to write data. -
Uses of Subscription in dev.getelements.elements.rt.jrpc
Methods in dev.getelements.elements.rt.jrpc that return SubscriptionModifier and TypeMethodDescriptionSingleAsyncResultHandlerStrategy.onFinalResult(Consumer<Object> finalResult) SingleSyncReturnResultHandlerStrategy.onFinalResult(Consumer<Object> finalResult) -
Uses of Subscription in dev.getelements.elements.rt.remote
Methods in dev.getelements.elements.rt.remote that return SubscriptionModifier and TypeMethodDescriptionInstanceConnectionService.subscribeToConnect(Consumer<InstanceConnectionService.InstanceConnection> onConnect) Adds aConsumer<InstanceConnectionService.InstanceConnection>that will be called when a new instance has connected to thisInstanceConnectionService.InstanceConnectionService.subscribeToDisconnect(Consumer<InstanceConnectionService.InstanceConnection> onDisconnect) Adds aConsumer<InstanceConnectionService.InstanceConnection>that will be called when a an instance has disconnected from thisInstanceConnectionService.InstanceDiscoveryService.subscribeToDiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) Subscribes to an event that fires when a new host joins the network.JndiSrvInstanceDiscoveryService.subscribeToDiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) SpotifySrvInstanceDiscoveryService.subscribeToDiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) StaticInstanceDiscoveryService.subscribeToDiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) InstanceDiscoveryService.subscribeToUndiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) Subscribes to an event that fires when a host leaves the network.JndiSrvInstanceDiscoveryService.subscribeToUndiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) SpotifySrvInstanceDiscoveryService.subscribeToUndiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) StaticInstanceDiscoveryService.subscribeToUndiscovery(Consumer<InstanceHostInfo> instanceHostInfoConsumer) -
Uses of Subscription in dev.getelements.elements.rt.remote.jeromq
Methods in dev.getelements.elements.rt.remote.jeromq that return SubscriptionModifier and TypeMethodDescriptionJeroMQInstanceConnectionService.subscribeToConnect(Consumer<InstanceConnectionService.InstanceConnection> onConnect) JeroMQInstanceConnectionService.subscribeToDisconnect(Consumer<InstanceConnectionService.InstanceConnection> onDisconnect) -
Uses of Subscription in dev.getelements.elements.sdk
Methods in dev.getelements.elements.sdk that return SubscriptionModifier and TypeMethodDescriptionstatic SubscriptionSubscription.begin()Used to start a chain ofSubscriptioninstances.default SubscriptionSubscription.chain(Subscription other) Chains thisSubscriptionto the other so that both will be unsubscribed at the same time.ElementRegistry.onClose(Consumer<ElementRegistry> onClose) Adds aConsumerto thisElementRegistrywhich will get called when it is closed.Adds aConsumerto thisElementRegistrywhich will get called when anEventis sourced from anElementwithin this registry.Methods in dev.getelements.elements.sdk with parameters of type SubscriptionModifier and TypeMethodDescriptiondefault SubscriptionSubscription.chain(Subscription other) Chains thisSubscriptionto the other so that both will be unsubscribed at the same time. -
Uses of Subscription in dev.getelements.elements.sdk.spi
Methods in dev.getelements.elements.sdk.spi that return SubscriptionModifier and TypeMethodDescriptionElementScopedElementRegistry.onClose(Consumer<ElementRegistry> onClose) RootElementRegistry.onClose(Consumer<ElementRegistry> onClose) -
Uses of Subscription in dev.getelements.elements.sdk.util
Methods in dev.getelements.elements.sdk.util that return SubscriptionModifier and TypeMethodDescriptionConcurrentDequePublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) ConcurrentLockedPublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) LinkedPublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) Publisher.subscribe(BiConsumer<Subscription, ? super T> consumer) Subscribes to a particular event.default SubscriptionSubscribes to a particular event.Methods in dev.getelements.elements.sdk.util that return types with arguments of type SubscriptionMethod parameters in dev.getelements.elements.sdk.util with type arguments of type SubscriptionModifier and TypeMethodDescriptionConcurrentDequePublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) ConcurrentLockedPublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) LinkedPublisher.subscribe(BiConsumer<Subscription, ? super T> consumer) Publisher.subscribe(BiConsumer<Subscription, ? super T> consumer) Subscribes to a particular event. -
Uses of Subscription in dev.getelements.elements.test
Methods in dev.getelements.elements.test that return SubscriptionModifier and TypeMethodDescriptionEmbeddedInstanceContainer.onClose(Consumer<? super EmbeddedInstanceContainer> consumer) Registers for a notification when this instance closes.EmbeddedTestService.onClose(Consumer<? super EmbeddedTestService> consumer) Subscribes to an even that is fired when the service is closed.JeroMQEmbeddedInstanceContainer.onClose(Consumer<? super EmbeddedInstanceContainer> consumer) JeroMQEmbeddedTestService.onClose(Consumer<? super EmbeddedTestService> consumer)