@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 |
---|---|
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.boolean isAborted()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.