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

org.rx.core.WaitHandle Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.core;

import org.apache.commons.lang3.exception.ExceptionUtils;

import java.util.concurrent.TimeoutException;

public interface WaitHandle {
    static TimeoutException newTimeoutException(String message, Throwable e) {
        StringBuilder buf = new StringBuilder(message);
        if (e != null) {
            buf.append("\n").append(ExceptionUtils.getStackTrace(e));
        }
        return new TimeoutException(buf.toString());
    }

    boolean await(long timeoutMillis);

    void signalAll();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy