Class MessagingReadinessCheck
java.lang.Object
io.helidon.microprofile.messaging.health.MessagingReadinessCheck
- All Implemented Interfaces:
MessagingChannelProcessor
,HealthCheck
@Readiness
@ApplicationScoped
@BuiltInHealthCheck
public class MessagingReadinessCheck
extends Object
implements HealthCheck, MessagingChannelProcessor
MicroProfile Reactive Messaging readiness check.
Until all channels is up, messaging is considered to be down.
-
Field Summary
Fields inherited from interface io.helidon.microprofile.messaging.MessagingChannelProcessor
DEFAULT_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall()
void
Listener for the initial event before actual subscribing.void
onSubscribe
(String channelName, Subscriber<Message<?>> subscriber, Subscription subscription) Listener for the onSubscribe signal coming from the upstream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.microprofile.messaging.MessagingChannelProcessor
channelName, map, onCancel, onComplete, onError, onRequest
-
Constructor Details
-
MessagingReadinessCheck
public MessagingReadinessCheck()
-
-
Method Details
-
call
- Specified by:
call
in interfaceHealthCheck
-
onSubscribe
public void onSubscribe(String channelName, Subscriber<Message<?>> subscriber, Subscription subscription) Description copied from interface:MessagingChannelProcessor
Listener for the onSubscribe signal coming from the upstream.- Specified by:
onSubscribe
in interfaceMessagingChannelProcessor
- Parameters:
channelName
- name of the messaging channelsubscriber
- subscriber causing this onSubscribe signalsubscription
- assigned subscription
-
onInit
Description copied from interface:MessagingChannelProcessor
Listener for the initial event before actual subscribing.- Specified by:
onInit
in interfaceMessagingChannelProcessor
- Parameters:
channelName
- name of the messaging channel
-