@Internal public abstract class AbstractReleaseCallbackContainer extends Object implements ReleaseCallbackContainer
ReleaseCallbackContainer
. It's not thread-safe.Constructor and Description |
---|
AbstractReleaseCallbackContainer() |
Modifier and Type | Method and Description |
---|---|
void |
registerReleaseCallback(ReleaseCallback callback)
Register a release callback.
|
void |
release()
Release all the resources, i.e. invoke
ReleaseCallback.release()
on each callback. |
public void release()
ReleaseCallback.release()
on each callback. All the callbacks are always invoked, even if one of
the invocation fails (throws unchecked exception). Callbacks are invoked
in the order in which they were registered.public void registerReleaseCallback(ReleaseCallback callback)
ReleaseCallbackContainer
registerReleaseCallback
in interface ReleaseCallbackContainer
Copyright © 2017. All rights reserved.