T - Type of registered listenerpublic interface ListenerRegistration<T extends EventListener> extends ObjectRegistration<T>
Registration of an EventListener. This interface provides the additional
guarantee that the process of unregistration cannot fail for predictable reasons.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unregister the listener.
|
getInstancevoid close()
While the interface contract allows an implementation to ignore the occurrence of RuntimeExceptions, implementations are strongly encouraged to deal with such exceptions internally and to ensure invocations of this method do not fail in such circumstances.
close in interface AutoCloseableclose in interface RegistrationCopyright © 2018 OpenDaylight. All rights reserved.