|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IReferenceCounter
An object that is aware of its referents.
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.
| Field Summary | |
|---|---|
static Attribute |
ATTR_REFERENCECOUNT
|
| Method Summary | |
|---|---|
Object |
acquire()
Indicate usage of the object. |
int |
getReferenceCount()
The current "usage level". |
void |
release()
Deprecated. use release(handle) |
void |
release(Object handle)
The object is no longer needed. |
| Field Detail |
|---|
static final Attribute ATTR_REFERENCECOUNT
| Method Detail |
|---|
Object acquire()
int getReferenceCount()
@Deprecated void release()
void release(Object handle)
handle -
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||