|Constructor and Description|
Creates a new shutdown request object.
|Modifier and Type||Method and Description|
Used to indicate that the record processor has completed the call to
Used to indicate that the record processor has been notified of a requested shutdown, and given the chance to checkpoint.
public ShardConsumerShutdownNotification(LeaseCoordinator leaseCoordinator, Lease lease, CountDownLatch notificationCompleteLatch, CountDownLatch shutdownCompleteLatch)
leaseCoordinator- the lease coordinator used to drop leases from once the initial shutdown request is completed.
lease- the lease that this shutdown request will free once initial shutdown is complete
notificationCompleteLatch- used to inform the caller once the
ShutdownNotificationAwareobject has been notified of the shutdown request.
shutdownCompleteLatch- used to inform the caller once the record processor is fully shutdown
public void shutdownNotificationComplete()
Copyright © 2021. All rights reserved.