mirror of https://github.com/apache/druid.git
SeekableStreamSupervisor: Unique type name for GracefulShutdownNotice. (#13399)
Allows GracefulShutdownNotice to be differentiated from ShutdownNotice.
This commit is contained in:
parent
de566eb0db
commit
b8ca03d283
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue