All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nike.riposte.server.error.exception.NonblockingEndpointCompletableFutureTimedOut Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package com.nike.riposte.server.error.exception;

/**
 * This will be thrown when a nonblocking endpoint's {@link java.util.concurrent.CompletableFuture} fails to complete
 * within the necessary amount of time.
 *
 * @author Nic Munroe
 */
public class NonblockingEndpointCompletableFutureTimedOut extends RuntimeException {

    public final long timeoutValueMillis;

    public NonblockingEndpointCompletableFutureTimedOut(long timeoutValueMillis) {
        super("The CompletableFuture was cancelled because it was taking too long. "
              + "completable_future_timeout_value_millis=" + timeoutValueMillis);
        this.timeoutValueMillis = timeoutValueMillis;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy