mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
61 lines
1.2 KiB
Java
61 lines
1.2 KiB
Java
|
package com.google.common.util.concurrent;
|
||
|
|
||
|
import com.google.errorprone.annotations.DoNotMock;
|
||
|
import java.util.concurrent.Executor;
|
||
|
import java.util.concurrent.TimeUnit;
|
||
|
import java.util.concurrent.TimeoutException;
|
||
|
|
||
|
@DoNotMock("Create an AbstractIdleService")
|
||
|
@ElementTypesAreNonnullByDefault
|
||
|
/* loaded from: classes3.dex */
|
||
|
public interface Service {
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static abstract class Listener {
|
||
|
public void failed(State state, Throwable th) {
|
||
|
}
|
||
|
|
||
|
public void running() {
|
||
|
}
|
||
|
|
||
|
public void starting() {
|
||
|
}
|
||
|
|
||
|
public void stopping(State state) {
|
||
|
}
|
||
|
|
||
|
public void terminated(State state) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public enum State {
|
||
|
NEW,
|
||
|
STARTING,
|
||
|
RUNNING,
|
||
|
STOPPING,
|
||
|
TERMINATED,
|
||
|
FAILED
|
||
|
}
|
||
|
|
||
|
void addListener(Listener listener, Executor executor);
|
||
|
|
||
|
void awaitRunning();
|
||
|
|
||
|
void awaitRunning(long j, TimeUnit timeUnit) throws TimeoutException;
|
||
|
|
||
|
void awaitTerminated();
|
||
|
|
||
|
void awaitTerminated(long j, TimeUnit timeUnit) throws TimeoutException;
|
||
|
|
||
|
Throwable failureCause();
|
||
|
|
||
|
boolean isRunning();
|
||
|
|
||
|
Service startAsync();
|
||
|
|
||
|
State state();
|
||
|
|
||
|
Service stopAsync();
|
||
|
}
|