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, wait
getOperationType
handleRequest
protected abstract void sendRequest(ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestContext<A> context, FlushableDataOutput output) throws IOException
resultHandler
- the result handlercontext
- the request contextoutput
- the data outputIOException
public void sendRequest(ActiveOperation.ResultHandler<T> resultHandler, ManagementRequestContext<A> context) throws IOException
ManagementRequest
sendRequest
in interface ManagementRequest<T,A>
resultHandler
- the result handlercontext
- the request contextIOException
- for any errorpublic void handleFailed(ManagementResponseHeader header, ActiveOperation.ResultHandler<T> resultHandler)
ManagementResponseHandler
handleFailed
in interface ManagementResponseHandler<T,A>
header
- the headerresultHandler
- the result handlerCopyright © 2023 JBoss by Red Hat. All rights reserved.