public abstract class AbstractInnerCloseable extends AbstractCloseable
AbstractCloseable.State
closeFuture, lock, state
log
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() |
builder, close, isClosed, isClosing, preClose
close, isOpen
protected AbstractInnerCloseable()
protected AbstractInnerCloseable(String discriminator)
protected abstract Closeable getInnerCloseable()
protected CloseFuture doCloseGracefully()
doCloseGracefully
in class AbstractCloseable
protected 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–2016 The Apache Software Foundation. All rights reserved.