@InterfaceAudience.Private public interface Abortable
This is used primarily for ZooKeeper usage when we could get an unexpected and fatal exception, requiring an abort.
Implemented by the Master, RegionServer, and TableServers (client).
Modifier and Type | Method and Description |
---|---|
default void |
abort(String why)
It just call another abort method and the Throwable parameter is null.
|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
boolean |
isAborted()
Check if the server or client was aborted.
|
void abort(String why, Throwable e)
why
- Why we're aborting.e
- Throwable that caused abort. Can be null.default void abort(String why)
why
- Why we're aborting.abort(String, Throwable)
boolean isAborted()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.