Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RetryCallback |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.api.retry; | |
8 | ||
9 | /** | |
10 | * This is the main Retry SPI. The code inside the {@link #doWork} method is what will actually get <u>retried</u> | |
11 | * according to the {@link RetryPolicy} that has been configured. Note that retries can be wrapped in a transaction | |
12 | * to ensure the work is atomic. | |
13 | */ | |
14 | public interface RetryCallback | |
15 | { | |
16 | public void doWork(RetryContext context) throws Exception; | |
17 | ||
18 | public String getWorkDescription(); | |
19 | } |