public class AdminClientResult<T> extends Object
Constructor and Description |
---|
AdminClientResult(T result) |
AdminClientResult(Throwable exception) |
Modifier and Type | Method and Description |
---|---|
Throwable |
exception()
The exception of the AdminClient-backed call.
|
boolean |
hasException() |
T |
result()
The result of the AdminClient-backed call.
|
public AdminClientResult(T result)
result
- - the result of the admin client call, null if an exception was passedpublic AdminClientResult(Throwable exception)
exception
- - the exception thrown by the admin client call, null if no exception occurredpublic T result()
hasException()
.public Throwable exception()
hasException()
is false.public boolean hasException()