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
Fields Modifier and Type Field Description static OperationContext.AttachmentKey<EarlyResponseSendListener>
ATTACHMENT_KEY
Key under which a listener would beattached to an operation context
if notification that it's safe
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
sendEarlyResponse(OperationContext.ResultAction resultAction)
Informs the management kernel that it is ok to send an early response to the operation.
-
-
-
Field Detail
-
ATTACHMENT_KEY
static final OperationContext.AttachmentKey<EarlyResponseSendListener> ATTACHMENT_KEY
Key under which a listener would beattached to an operation context
if notification that it's safe
-
-
Method Detail
-
sendEarlyResponse
void sendEarlyResponse(OperationContext.ResultAction resultAction)
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
-
-