Class ServiceInvocationResultResponseImpl
java.lang.Object
com.flowable.serviceregistry.engine.impl.runtime.ServiceInvocationResultResponseImpl
- All Implemented Interfaces:
ServiceInvocationResultResponse
public class ServiceInvocationResultResponseImpl
extends Object
implements ServiceInvocationResultResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServiceInvocationResult
protected long
protected ServiceInvocationResult
-
Constructor Summary
ConstructorsConstructorDescriptionServiceInvocationResultResponseImpl
(ServiceInvocationResult unprocessedResult, long totalCount, Map<String, Object> metadata) ServiceInvocationResultResponseImpl
(ServiceInvocationResultResponse originalResultResponse, ServiceInvocationResult processedResult) Constructor used after processing the raw response of the service and creating a new instance representing the processed result.ServiceInvocationResultResponseImpl
(ServiceInvocationResult unprocessedResult, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionThe type of the returned result response.long
Returns the total count, when only return a subset of the results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.serviceregistry.api.runtime.ServiceInvocationResultResponse
getValue, hasValue
-
Field Details
-
unprocessedResult
-
totalCount
protected long totalCount -
metadata
-
processedResult
-
-
Constructor Details
-
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, Map<String, Object> metadata) -
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, long totalCount, Map<String, Object> metadata) -
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResultResponse originalResultResponse, ServiceInvocationResult processedResult) Constructor used after processing the raw response of the service and creating a new instance representing the processed result.
-
-
Method Details
-
getUnprocessedResult
-
getProcessedResult
- Specified by:
getProcessedResult
in interfaceServiceInvocationResultResponse
-
getResultType
Description copied from interface:ServiceInvocationResultResponse
The type of the returned result response.- Specified by:
getResultType
in interfaceServiceInvocationResultResponse
-
getTotalCount
public long getTotalCount()Description copied from interface:ServiceInvocationResultResponse
Returns the total count, when only return a subset of the results. Will only be set if: - The service invoker supports it - The operation supports it, e.g. search operations might do it, but a create, update, delete, ... operation wouldn't. In those cases, the returned value will be a negative number.- Specified by:
getTotalCount
in interfaceServiceInvocationResultResponse
-
getMetadata
- Specified by:
getMetadata
in interfaceServiceInvocationResultResponse
-