Search in sources :

Example 1 with DeleteMessageResult

use of com.amazonaws.services.sqs.model.DeleteMessageResult in project camel by apache.

the class AmazonSQSClientMock method deleteMessage.

@Override
public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonClientException {
    String receiptHandle = deleteMessageRequest.getReceiptHandle();
    if (inFlight.containsKey(receiptHandle)) {
        ScheduledFuture inFlightTask = inFlight.get(receiptHandle);
        inFlightTask.cancel(true);
    }
    return new DeleteMessageResult();
}
Also used : DeleteMessageResult(com.amazonaws.services.sqs.model.DeleteMessageResult) ScheduledFuture(java.util.concurrent.ScheduledFuture)

Aggregations

DeleteMessageResult (com.amazonaws.services.sqs.model.DeleteMessageResult)1 ScheduledFuture (java.util.concurrent.ScheduledFuture)1