public interface IReferenceCounter
The object implements a reference counting mechanism that should behave like this:
If combined with the INotificationSupport, the object MAY trigger an
AttributeChangedEvent upon acquire/release. In this case the
ATTR_REFERENCECOUNT should be used to indicate the attribute.
If combined with the INotificationSupport, the object MAY trigger a
DestroyedEvent when the reference count reaches 0.
| Modifier and Type | Field and Description |
|---|---|
static Attribute |
ATTR_REFERENCECOUNT |
static final Attribute ATTR_REFERENCECOUNT
Object acquire()
int getReferenceCount()
@Deprecated void release()
void release(Object handle)
handle - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.