org.objectweb.dream.message
Interface ReferenceCounter

All Known Implementing Classes:
Message

public interface ReferenceCounter

Interface implemented by message and used by message manager to know the number of shared reference to a message. When a message instance is created, its reference counter must be initialized to 0 (and is first incremented by the message manager).


Method Summary
 boolean decrementReferenceCounter()
          Decrements the reference counter.
 void incrementReferenceCounter()
          Increments the reference counter.
 

Method Detail

incrementReferenceCounter

void incrementReferenceCounter()
Increments the reference counter.


decrementReferenceCounter

boolean decrementReferenceCounter()
Decrements the reference counter.

Returns:
true if the reference counter is null.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.