| Modifier and Type | Field and Description |
|---|---|
| private static final VarHandle | |
| private volatile int | |
| private final Drop |
| Modifier and Type | Method and Description |
|---|---|
| public static <X> Drop | |
| public void | attach(T
The new obj)Resource instance with the new owner.Implements io. |
| private static void | |
| public void | drop(T
The obj)Resource instance being dropped.Implements io. Resource instance.
|
| public Drop | |
| public ArcDrop | |
| public String | |
| public Drop | |
| public static <X> Drop |
| COUNT | back to summary |
|---|---|
| private static final VarHandle COUNT | |
| count | back to summary |
|---|---|
private volatile int count
| |
| delegate | back to summary |
|---|---|
| private final Drop<T> delegate | |
| ArcDrop | back to summary |
|---|---|
| public ArcDrop(Drop<T> delegate) | |
| acquire | back to summary |
|---|---|
| public static <X> Drop | |
| attach | back to summary |
|---|---|
| public void attach(T obj) Implements io. Doc from io. Called when the resource changes owner. | |
| checkValidState | back to summary |
|---|---|
| private static void checkValidState(int count) | |
| drop | back to summary |
|---|---|
| public void drop(T obj) Implements io. Doc from io. Dispose of the resources in the given | |
| fork | back to summary |
|---|---|
| public Drop Implements io. Doc from io. Branch the responsibility of dropping a resource. This drop instance will remain associated with its current resource, while the returned drop instance must be attached to its new resource. | |
| increment | back to summary |
|---|---|
| public ArcDrop | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unwrap | back to summary |
|---|---|
| public Drop | |
| wrap | back to summary |
|---|---|
| public static <X> Drop | |