private class EndpointImpl.MapRegistration<T> extends AbstractHandleableCloseable<Registration> implements Registration
HandleableCloseable.Key| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
key |
private java.util.concurrent.ConcurrentMap<java.lang.String,T> |
map |
private T |
value |
| Modifier | Constructor and Description |
|---|---|
private |
MapRegistration(java.util.concurrent.ConcurrentMap<java.lang.String,T> map,
java.lang.String key,
T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this resource.
|
protected void |
closeAction()
Called exactly once when the
close() method is invoked; the actual close operation should take place here. |
java.lang.String |
toString() |
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, checkOpen, closeAsync, closeComplete, closeFailed, finalize, getExecutor, isOpenclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseHandler, awaitClosed, awaitClosedUninterruptibly, closeAsyncprivate final java.util.concurrent.ConcurrentMap<java.lang.String,T> map
private final java.lang.String key
private final T value
protected void closeAction()
throws java.io.IOException
AbstractHandleableCloseableclose() method is invoked; the actual close operation should take place here.
This method must call AbstractHandleableCloseable.closeComplete(), directly or indirectly, for the close operation to finish
(it may happen in another thread but it must happen).
This method should not expect the AbstractHandleableCloseable.closeComplete() call to be made from another thread from the same thread pool
that may cause AbstractHandleableCloseable.close(). As close will block, this can result in situations where all threads in the pool are
blocked on AbstractHandleableCloseable.close() method calls, which means the AbstractHandleableCloseable.closeComplete() will never be run.closeAction in class AbstractHandleableCloseable<Registration>RemotingException - if the close failedjava.io.IOExceptionpublic void close()
AbstractHandleableCloseableclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface HandleableCloseable<Registration>close in interface Registrationclose in class AbstractHandleableCloseable<Registration>public java.lang.String toString()
toString in class java.lang.Object