public abstract class AbstractResponseContext extends Object implements IResponseContext
Constructor and Description |
---|
AbstractResponseContext(PlatformLogicalVersion sourcePlatformLogicalVersion,
OperationPriority operationPriority,
String lrmiMonitoringId,
LRMIInvocationTrace trace) |
Modifier and Type | Method and Description |
---|---|
String |
getLRMIMonitoringId() |
OperationPriority |
getOperationPriority() |
PlatformLogicalVersion |
getSourcePlatformLogicalVersion() |
LRMIInvocationTrace |
getTrace() |
boolean |
isInvokedFromNewRouter() |
boolean |
markAsSentResponse()
Mark this context as response was already sent.
|
void |
sendResponse(Object response,
Exception exp) |
void |
setInvokedFromNewRouter(boolean invokedFromNewRouter) |
void |
setResponseHandler(IResponseHandler handler) |
void |
setSendResponse(boolean sendResp) |
boolean |
shouldSendResponse() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendResponseToClient
public AbstractResponseContext(PlatformLogicalVersion sourcePlatformLogicalVersion, OperationPriority operationPriority, String lrmiMonitoringId, LRMIInvocationTrace trace)
public boolean markAsSentResponse()
IResponseContext
markAsSentResponse
in interface IResponseContext
false
if was already marked.public void sendResponse(Object response, Exception exp)
sendResponse
in interface IResponseContext
public void setResponseHandler(IResponseHandler handler)
setResponseHandler
in interface IResponseContext
public void setSendResponse(boolean sendResp)
setSendResponse
in interface IResponseContext
public boolean shouldSendResponse()
shouldSendResponse
in interface IResponseContext
public PlatformLogicalVersion getSourcePlatformLogicalVersion()
getSourcePlatformLogicalVersion
in interface IResponseContext
public OperationPriority getOperationPriority()
getOperationPriority
in interface IResponseContext
public LRMIInvocationTrace getTrace()
getTrace
in interface IResponseContext
public boolean isInvokedFromNewRouter()
isInvokedFromNewRouter
in interface IResponseContext
public void setInvokedFromNewRouter(boolean invokedFromNewRouter)
setInvokedFromNewRouter
in interface IResponseContext
public String getLRMIMonitoringId()
getLRMIMonitoringId
in interface IResponseContext
Copyright © GigaSpaces.