com.undefinedlabs.scope.deps.okio.ForwardingTimeout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scope-deps Show documentation
Show all versions of scope-deps Show documentation
Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly
identify, troubleshoot and fix failed builds.
This artifact contains dependencies for Scope.
package com.undefinedlabs.scope.deps.okio;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public class ForwardingTimeout extends Timeout {
private Timeout delegate;
public ForwardingTimeout(Timeout delegate) {
if (delegate == null) throw new IllegalArgumentException("delegate == null");
this.delegate = delegate;
}
/** {@link Timeout} instance to which this instance is currently delegating. */
public final Timeout delegate() {
return delegate;
}
public final ForwardingTimeout setDelegate(Timeout delegate) {
if (delegate == null) throw new IllegalArgumentException("delegate == null");
this.delegate = delegate;
return this;
}
@Override public Timeout timeout(long timeout, TimeUnit unit) {
return delegate.timeout(timeout, unit);
}
@Override public long timeoutNanos() {
return delegate.timeoutNanos();
}
@Override public boolean hasDeadline() {
return delegate.hasDeadline();
}
@Override public long deadlineNanoTime() {
return delegate.deadlineNanoTime();
}
@Override public Timeout deadlineNanoTime(long deadlineNanoTime) {
return delegate.deadlineNanoTime(deadlineNanoTime);
}
@Override public Timeout clearTimeout() {
return delegate.clearTimeout();
}
@Override public Timeout clearDeadline() {
return delegate.clearDeadline();
}
@Override public void throwIfReached() throws IOException {
delegate.throwIfReached();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy