Class ServiceDiscoveryAnnouncerRetryTask
java.lang.Object
com.linkedin.venice.servicediscovery.ServiceDiscoveryAnnouncerRetryTask
- All Implemented Interfaces:
Runnable
This class is responsible for retrying the registration of a
ServiceDiscoveryAnnouncer
in the case of registration failure.
It is a runnable task that is scheduled to register each service discovery announcer every
serviceDiscoveryRegistrationRetryMS
milliseconds.-
Constructor Summary
ConstructorDescriptionServiceDiscoveryAnnouncerRetryTask
(BlockingQueue<ServiceDiscoveryAnnouncer> serviceDiscoveryAnnouncerRetryQueue, long serviceDiscoveryRegistrationRetryMS) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
If the retry queue is empty, the task will wait until there is an available element in the queue.
-
Constructor Details
-
ServiceDiscoveryAnnouncerRetryTask
public ServiceDiscoveryAnnouncerRetryTask(BlockingQueue<ServiceDiscoveryAnnouncer> serviceDiscoveryAnnouncerRetryQueue, long serviceDiscoveryRegistrationRetryMS)
-
-
Method Details