Package org.waarp.vitam.common
Class OperationCheck
- java.lang.Object
-
- org.waarp.vitam.common.OperationCheck
-
public class OperationCheck extends Object
Class that pool the result from an asynchrone Vitam operation
-
-
Constructor Summary
Constructors Constructor Description OperationCheck(fr.gouv.vitam.access.external.client.AdminExternalClient client)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckAvailabilityAtr(int tenantId, String requestId)Check if the corresponding operation is donestatic intgetDelay()static booleangetResult()static intgetRetry()static voidmain(String[] args)static voidsetRetry(int retryToSet, int delayToSet)Change the default retry and delay for pooling of operation
-
-
-
Method Detail
-
setRetry
public static void setRetry(int retryToSet, int delayToSet)Change the default retry and delay for pooling of operation- Parameters:
retryToSet-delayToSet-
-
getRetry
public static int getRetry()
- Returns:
- the number of retries for pooling of operation
-
getDelay
public static int getDelay()
- Returns:
- the current delay between 2 retries for pooling of operation
-
getResult
public static boolean getResult()
-
main
public static void main(String[] args)
-
checkAvailabilityAtr
public boolean checkAvailabilityAtr(int tenantId, String requestId)Check if the corresponding operation is done- Parameters:
tenantId- the tenantId associated with the operationrequestId- the operation Id- Returns:
- True if done
-
-