T - the response typeA - the attachment typepublic abstract class AbstractManagementRequest<T,A> extends Object implements ManagementRequest<T,A>
| Constructor and Description |
|---|
AbstractManagementRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleFailed(ManagementResponseHeader header,
ActiveOperation.ResultHandler<T> resultHandler)
Handle a failed response.
|
void |
sendRequest(ActiveOperation.ResultHandler<T> resultHandler,
ManagementRequestContext<A> context)
Send the request.
|
protected abstract void |
sendRequest(ActiveOperation.ResultHandler<T> resultHandler,
ManagementRequestContext<A> context,
FlushableDataOutput output)
Send the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOperationTypehandleRequestprotected abstract void sendRequest(ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestContext<A> context, FlushableDataOutput output) throws IOException
resultHandler - the result handlercontext - the request contextoutput - the data outputIOExceptionpublic void sendRequest(ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestContext<A> context) throws IOException
ManagementRequestsendRequest in interface ManagementRequest<T,A>resultHandler - the result handlercontext - the request contextIOException - for any errorpublic void handleFailed(ManagementResponseHeader header, ActiveOperation.ResultHandler<T> resultHandler)
ManagementResponseHandlerhandleFailed in interface ManagementResponseHandler<T,A>header - the headerresultHandler - the result handlerCopyright © 2019 JBoss by Red Hat. All rights reserved.