public class ShardConsumerShutdownNotification extends Object implements ShutdownNotification
| Constructor and Description |
|---|
ShardConsumerShutdownNotification(LeaseCoordinator leaseCoordinator,
Lease lease,
CountDownLatch notificationCompleteLatch,
CountDownLatch shutdownCompleteLatch)
Creates a new shutdown request object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
shutdownComplete()
Used to indicate that the record processor has completed the call to
ShardRecordProcessor#shutdown(ShutdownInput) has
completed. |
void |
shutdownNotificationComplete()
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 completenotificationCompleteLatch - used to inform the caller once the
ShutdownNotificationAware object has been
notified of the shutdown request.shutdownCompleteLatch - used to inform the caller once the record processor is fully shutdownpublic void shutdownNotificationComplete()
ShutdownNotificationshutdownNotificationComplete in interface ShutdownNotificationpublic void shutdownComplete()
ShutdownNotificationShardRecordProcessor#shutdown(ShutdownInput) has
completed.shutdownComplete in interface ShutdownNotificationCopyright © 2019. All rights reserved.