public interface CloseableListenable
| Modifier and Type | Interface and Description |
|---|---|
static class |
CloseableListenable.Impl
Default implementation to handle listeners fired on close.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(Consumer<CloseableListenable> listener)
Add a listener to be called once this resource is closed.
|
void |
addCloseListener(Runnable listener)
Add a listener to be called once this resource is closed.
|
void |
close()
Close.
|
boolean |
isClosed()
Return true if closed.
|
void |
removeCloseListener(Consumer<CloseableListenable> listener)
Remove a listener.
|
void |
removeCloseListener(Runnable listener)
Remove a listener.
|
boolean isClosed()
void addCloseListener(Consumer<CloseableListenable> listener)
void addCloseListener(Runnable listener)
void removeCloseListener(Consumer<CloseableListenable> listener)
void removeCloseListener(Runnable listener)
Copyright © 2019. All rights reserved.