mirror of https://github.com/apache/druid.git
make phaser of ReferenceCountingCloseableObject protected instead of private so subclasses can do stuff with it (#10035)
This commit is contained in:
parent
cad9eea15d
commit
9468df4721
|
@ -41,7 +41,7 @@ public abstract class ReferenceCountingCloseableObject<BaseObject extends Closea
|
||||||
private static final Logger log = new Logger(ReferenceCountingCloseableObject.class);
|
private static final Logger log = new Logger(ReferenceCountingCloseableObject.class);
|
||||||
|
|
||||||
private final AtomicBoolean closed = new AtomicBoolean(false);
|
private final AtomicBoolean closed = new AtomicBoolean(false);
|
||||||
private final Phaser referents = new Phaser(1)
|
protected final Phaser referents = new Phaser(1)
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
protected boolean onAdvance(int phase, int registeredParties)
|
protected boolean onAdvance(int phase, int registeredParties)
|
||||||
|
|
Loading…
Reference in New Issue