Interface CallbackRegistration
- All Superinterfaces:
AutoCloseable
An independent, removable callback registration.
Closing this registration is idempotent and does not wait for callback execution.
Removal suppresses invocation only if it wins before the runtime claims the callback;
an already-claimed callback may still run after close() returns.
Registering the same callback more than once creates independent registrations.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Removes this registration without waiting for an already-claimed callback.
-
Method Details
-
close
void close()Removes this registration without waiting for an already-claimed callback. This operation does not throw checked exceptions.- Specified by:
closein interfaceAutoCloseable
-