| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static void | |
| public boolean | Returns: true if this object is still valid and can be accessed,
otherwise false if, for instance, this object has been dropped/deallocated,
or been sent elsewhere.Check if this object is accessible. |
| public static boolean | Returns: If the object is accessible.The object to check. obj, boolean The value to return if the object is neither a resource, nor reference counted. expectedDefault)Check if an object is accessible. |
| public Send | |
| public default T | |
| public static void |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| dispose | back to summary |
|---|---|
| public static void dispose(Object obj) Attempt to dispose of whatever the given object is.
If the object is
Any exceptions caused by this will be left to bubble up, and checked exceptions will be wrapped in a
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Check if this object is accessible.
| |
| isAccessible | back to summary |
|---|---|
| public static boolean isAccessible(Object obj, boolean expectedDefault) Check if an object is accessible. This returns If the object is neither of these types, then the expected default value is returned.
| |
| send | back to summary |
|---|---|
| public Send Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling | |
| touch | back to summary |
|---|---|
| public default T touch(Object hint) Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |
| touch | back to summary |
|---|---|
| public static void touch(Object obj, Object hint) Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect. If the given object is not a resource, or not reference counted, then this method has no effect. | |