public abstract class AbstractInnerCloseable extends AbstractCloseable
AbstractCloseable.State
closeFuture, lock, state
log
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
Modifier | Constructor and Description |
---|---|
protected |
AbstractInnerCloseable() |
protected |
AbstractInnerCloseable(String discriminator) |
Modifier and Type | Method and Description |
---|---|
protected CloseFuture |
doCloseGracefully() |
protected void |
doCloseImmediately()
doCloseImmediately is called once and only once
with state == Immediate
|
protected abstract Closeable |
getInnerCloseable() |
addCloseFutureListener, builder, close, isClosed, isClosing, preClose, removeCloseFutureListener
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, close, getMaxCloseWaitTime, isOpen
protected AbstractInnerCloseable()
protected AbstractInnerCloseable(String discriminator)
protected abstract Closeable getInnerCloseable()
protected final CloseFuture doCloseGracefully()
doCloseGracefully
in class AbstractCloseable
protected final void doCloseImmediately()
AbstractCloseable
doCloseImmediately is called once and only once with state == Immediate
Overriding methods should always call the base implementation. It may be called concurrently while preClose() or doCloseGracefully is executing
doCloseImmediately
in class AbstractCloseable
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.