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
-
Constructor Summary
ConstructorDescriptionMbusRequestContext
(com.yahoo.messagebus.jdisc.MbusRequest request, com.yahoo.jdisc.handler.ResponseHandler responseHandler, com.yahoo.component.provider.ComponentRegistry<DocprocService> docprocServiceComponentRegistry, com.yahoo.component.provider.ComponentRegistry<AbstractConcreteDocumentFactory> docFactoryRegistry, com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetUri()
com.yahoo.jdisc.handler.ContentChannel
handleResponse
(com.yahoo.jdisc.Response response) boolean
Returns whether this request has timed outboolean
void
processingDone
(List<Processing> processings) void
processingFailed
(RequestContext.ErrorCode errorCode, String errorMsg) void
processingFailed
(Exception exception) void
skip()
-
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<DocprocService> docprocServiceComponentRegistry, com.yahoo.component.provider.ComponentRegistry<AbstractConcreteDocumentFactory> docFactoryRegistry, com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig)
-
-
Method Details
-
getProcessings
- Specified by:
getProcessings
in interfaceRequestContext
-
skip
public void skip()- Specified by:
skip
in interfaceRequestContext
-
processingDone
- Specified by:
processingDone
in interfaceRequestContext
-
processingFailed
- Specified by:
processingFailed
in interfaceRequestContext
-
processingFailed
- Specified by:
processingFailed
in interfaceRequestContext
-
getUri
- Specified by:
getUri
in interfaceRequestContext
-
getServiceName
- Specified by:
getServiceName
in interfaceRequestContext
-
isProcessable
public boolean isProcessable()- Specified by:
isProcessable
in interfaceRequestContext
-
hasExpired
public boolean hasExpired()Description copied from interface:RequestContext
Returns whether this request has timed out- Specified by:
hasExpired
in interfaceRequestContext
-
handleResponse
public com.yahoo.jdisc.handler.ContentChannel handleResponse(com.yahoo.jdisc.Response response) - Specified by:
handleResponse
in interfacecom.yahoo.jdisc.handler.ResponseHandler
-