Package org.jboss.as.controller.remote
Interface EarlyResponseSendListener
public interface EarlyResponseSendListener
Callback that can be provided to operation step handlers for operations like 'reload' and 'shutdown'
where the response needs to be sent to the caller before the operation completes. The handler will
invoke the callback when the operation has reached the point where it is safe to send the response.
No callback should be attached before the operation is committed.
- Author:
- Brian Stansberry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OperationContext.AttachmentKey<EarlyResponseSendListener>Key under which a listener would beattached to an operation contextif notification that it's safe -
Method Summary
Modifier and TypeMethodDescriptionvoidsendEarlyResponse(OperationContext.ResultAction resultAction) Informs the management kernel that it is ok to send an early response to the operation.
-
Field Details
-
ATTACHMENT_KEY
Key under which a listener would beattached to an operation contextif notification that it's safe
-
-
Method Details
-
sendEarlyResponse
Informs the management kernel that it is ok to send an early response to the operation. Note: It is valid for this method to be invoked multiple times for the same listener. It is the responsibility of the listener implementation to ensure that only one response is sent to the caller.- Parameters:
resultAction- the result of the operation for which an early response is being sent
-