Class ObservableAmb.AmbCoordinator<T>
- java.lang.Object
-
- io.reactivex.rxjava3.internal.operators.observable.ObservableAmb.AmbCoordinator<T>
-
- All Implemented Interfaces:
Disposable
- Enclosing class:
- ObservableAmb<T>
static final class ObservableAmb.AmbCoordinator<T> extends java.lang.Object implements Disposable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Observer<? super T>downstream(package private) ObservableAmb.AmbInnerObserver<T>[]observers(package private) java.util.concurrent.atomic.AtomicIntegerwinner
-
Constructor Summary
Constructors Constructor Description AmbCoordinator(Observer<? super T> actual, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose the resource, the operation should be idempotent.booleanisDisposed()Returns true if this resource has been disposed.voidsubscribe(ObservableSource<? extends T>[] sources)booleanwin(int index)
-
-
-
Field Detail
-
observers
final ObservableAmb.AmbInnerObserver<T>[] observers
-
winner
final java.util.concurrent.atomic.AtomicInteger winner
-
-
Method Detail
-
subscribe
public void subscribe(ObservableSource<? extends T>[] sources)
-
win
public boolean win(int index)
-
dispose
public void dispose()
Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
-