public static interface PublisherHealthCheck.PublisherReadinessListener
Modifier and Type | Method and Description |
---|---|
void |
ready()
Executes when the publisher transitions from a state where it can't publish to a state where
it eventually can publish as a result of congestion release.
|
void ready()
This method is executes on a thread different to the publisher thread. Additional synchronization may be required to ensure the processing of this method in order with a publishing thread.
When used in combination with PublisherHealthCheck.notifyWhenReady()
,
no additional synchronization is required to receive the READY notification after that.
In a concurrent, high throughput environment notifications may or may not accurately represent a current state of the publisher without proper synchronization.
Note: It is strongly recommended that client code inside of this callback method:
If you use method to perform long running or blocking operations, it can have significant, unexpected side-effects for the client application in terms of stability and performance.
This method is not executed from the api when it is in a terminating state.
Copyright 2019-2024 Solace Corporation. All rights reserved.