public interface SharedDistributionPackage extends DistributionPackage
DistributionPackage
that offers basic reference counting.
That's useful for example when using a package in multiple queues.Modifier and Type | Method and Description |
---|---|
void |
acquire(String... holderNames)
acquire a reference to this package and increase the reference count.
|
void |
release(String... holderNames)
release a reference to this package and decrease the reference count.
|
close, createInputStream, delete, getId, getInfo, getSize, getType
void acquire(@NotNull String... holderNames)
void release(@NotNull String... holderNames)
DistributionPackage#delete
method will be invoked.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.