public class AdminClientResult<T>
extends java.lang.Object
Constructor and Description |
---|
AdminClientResult(T result) |
AdminClientResult(java.lang.Throwable exception) |
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.Throwable exception)
exception
- - the exception thrown by the admin client call, null if no exception occurredpublic T result()
hasException()
.public java.lang.Throwable exception()
hasException()
is false.public boolean hasException()