@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 unregistered, false
if this handler
was not currently registered.Copyright © 2010–2022. All rights reserved.