com.atlassian.mywork.client.reliability
Interface ReliabilityService

All Known Implementing Classes:
DefaultReliabilityService

public interface ReliabilityService

A service that repeats asynchronous, unreliable tasks until they succeed. An example of such a task is a request to a remote server that may be down or unreachable at times.

Depending on the implementation, a task may survive a restart of the process. Implementations may have differing policies for the timing and number of task attempts.


Method Summary
 java.util.concurrent.Future<java.lang.String> submit(UnreliableTask task)
          Submit an UnreliableTask for reliable execution.
 

Method Detail

submit

java.util.concurrent.Future<java.lang.String> submit(UnreliableTask task)

Submit an UnreliableTask for reliable execution.

Parameters:
task - the UnreliableTask being submitted
Returns:
the Future containing the JSON String result of the task


Copyright © 2012 Atlassian. All Rights Reserved.