Class OperationCheck


  • public class OperationCheck
    extends Object
    Class that pool the result from an asynchrone Vitam operation
    • Constructor Detail

      • OperationCheck

        public OperationCheck​(fr.gouv.vitam.access.external.client.AdminExternalClient client)
    • 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 operation
        requestId - the operation Id
        Returns:
        True if done