Class MbusRequestContext
java.lang.Object
com.yahoo.docproc.jdisc.messagebus.MbusRequestContext
- All Implemented Interfaces:
RequestContext,com.yahoo.jdisc.handler.ResponseHandler
public class MbusRequestContext
extends Object
implements RequestContext, com.yahoo.jdisc.handler.ResponseHandler
- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.docproc.jdisc.RequestContext
RequestContext.ErrorCode -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMbusRequestContext(com.yahoo.messagebus.jdisc.MbusRequest request, com.yahoo.jdisc.handler.ResponseHandler responseHandler, com.yahoo.component.provider.ComponentRegistry<AbstractConcreteDocumentFactory> docFactoryRegistry, com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetUri()com.yahoo.jdisc.handler.ContentChannelhandleResponse(com.yahoo.jdisc.Response response) booleanReturns whether this request has timed outbooleanvoidprocessingDone(List<Processing> processings) voidprocessingFailed(RequestContext.ErrorCode errorCode, String errorMsg) voidprocessingFailed(Exception exception) voidskip()
-
Field Details
-
internalNoThrottledSource
- See Also:
-
-
Constructor Details
-
MbusRequestContext
public MbusRequestContext(com.yahoo.messagebus.jdisc.MbusRequest request, com.yahoo.jdisc.handler.ResponseHandler responseHandler, com.yahoo.component.provider.ComponentRegistry<AbstractConcreteDocumentFactory> docFactoryRegistry, com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig)
-
-
Method Details
-
getProcessings
- Specified by:
getProcessingsin interfaceRequestContext
-
skip
public void skip()- Specified by:
skipin interfaceRequestContext
-
processingDone
- Specified by:
processingDonein interfaceRequestContext
-
processingFailed
- Specified by:
processingFailedin interfaceRequestContext
-
processingFailed
- Specified by:
processingFailedin interfaceRequestContext
-
getUri
- Specified by:
getUriin interfaceRequestContext
-
getServiceName
- Specified by:
getServiceNamein interfaceRequestContext
-
isProcessable
public boolean isProcessable()- Specified by:
isProcessablein interfaceRequestContext
-
hasExpired
public boolean hasExpired()Description copied from interface:RequestContextReturns whether this request has timed out- Specified by:
hasExpiredin interfaceRequestContext
-
handleResponse
public com.yahoo.jdisc.handler.ContentChannel handleResponse(com.yahoo.jdisc.Response response) - Specified by:
handleResponsein interfacecom.yahoo.jdisc.handler.ResponseHandler
-