@FunctionalInterface public interface Registration extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancels this Registration.
|
default void |
close()
Cancels this Registration.
|
default void close()
cancel()
.
close
in interface AutoCloseable
boolean cancel()
true
if this handler is successfully deregistered, false
if this handler
was not currently registered.Copyright © 2010–2024. All rights reserved.