Class BatchPolicy

    • Method Detail

      • timeoutInSeconds

        public final Long timeoutInSeconds()

        The amount of time, in seconds, to wait for the batch to complete.

        If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError), they will be moved to the failed list and the batch status will be Failed. If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut.

        Returns:
        The amount of time, in seconds, to wait for the batch to complete.

        If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError), they will be moved to the failed list and the batch status will be Failed. If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut.

      • maxConcurrency

        public final Integer maxConcurrency()

        The number of active simulation jobs create as part of the batch that can be in an active state at the same time.

        Active states include: Pending,Preparing, Running, Restarting, RunningFailed and Terminating. All other states are terminal states.

        Returns:
        The number of active simulation jobs create as part of the batch that can be in an active state at the same time.

        Active states include: Pending,Preparing, Running, Restarting, RunningFailed and Terminating. All other states are terminal states.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)