SeekableStreamSupervisor: Unique type name for GracefulShutdownNotice. (#13399)

Allows GracefulShutdownNotice to be differentiated from ShutdownNotice.
This commit is contained in:
Gian Merlino 2022-11-21 05:40:14 -08:00 committed by GitHub
parent de566eb0db
commit b8ca03d283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -538,12 +538,20 @@ public abstract class SeekableStreamSupervisor<PartitionIdType, SequenceOffsetTy
private class GracefulShutdownNotice extends ShutdownNotice
{
private static final String TYPE = "graceful_shutdown_notice";
@Override
public void handle() throws InterruptedException, ExecutionException, TimeoutException
{
gracefulShutdownInternal();
super.handle();
}
@Override
public String getType()
{
return TYPE;
}
}
private class ShutdownNotice implements Notice