public static ListStreamProcessorsResultJsonUnmarshaller getInstance() { if (instance == null) instance = new ListStreamProcessorsResultJsonUnmarshaller(); return instance; } }
@SdkInternalApi final ListStreamProcessorsResult executeListStreamProcessors(ListStreamProcessorsRequest listStreamProcessorsRequest) { ExecutionContext executionContext = createExecutionContext(listStreamProcessorsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<ListStreamProcessorsRequest> request = null; Response<ListStreamProcessorsResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListStreamProcessorsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listStreamProcessorsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Rekognition"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListStreamProcessors"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<ListStreamProcessorsResult>> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListStreamProcessorsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
public static ListStreamProcessorsResultJsonUnmarshaller getInstance() { if (instance == null) instance = new ListStreamProcessorsResultJsonUnmarshaller(); return instance; } }
awsRequestMetrics.endEvent(Field.RequestMarshallTime); Unmarshaller<ListStreamProcessorsResult, JsonUnmarshallerContext> unmarshaller = new ListStreamProcessorsResultJsonUnmarshaller(); JsonResponseHandler<ListStreamProcessorsResult> responseHandler = new JsonResponseHandler<ListStreamProcessorsResult>( unmarshaller);