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 |
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
int |
getReferenceCount() |
void |
release() |
static final Attribute ATTR_REFERENCECOUNT