| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private static final VarHandle | |
| private volatile boolean | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | Returns: true if the gate has already been passed,
otherwise false if we got through the gate first.Atomically check and pass through the gate. |
| public T | receive()
Implements io. Resource instance being sent, and bind its ownership to the calling thread.
|
| public boolean | referentIsInstanceOf(Class<?>
The type to check. cls)Implements io. Send is an instance of the given class.
|
| concreteObjectType | back to summary |
|---|---|
| private final Class<T> concreteObjectType | |
| GATE | back to summary |
|---|---|
| private static final VarHandle GATE | |
| gate | back to summary |
|---|---|
private volatile boolean gate
| |
| supplier | back to summary |
|---|---|
| private final Supplier<? extends T> supplier | |
| SendFromSupplier | back to summary |
|---|---|
| public SendFromSupplier(Class<T> concreteObjectType, Supplier<? extends T> supplier) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Discard this
| |
| passGate | back to summary |
|---|---|
| private boolean passGate() Atomically check and pass through the gate.
| |
| receive | back to summary |
|---|---|
| public T receive() Implements io. Doc from io. Receive the This method can only be called once, and will throw otherwise.
| |
| referentIsInstanceOf | back to summary |
|---|---|
| public boolean referentIsInstanceOf(Class<?> cls) Implements io. Doc from io. Determine if the object received from this | |