org.objectweb.dream.message
Interface MessageReferenceCounter

All Known Implementing Classes:
AbstractExtensibleMessage, AbstractNonExtensibleMessage, AggregateMessageImpl

public interface MessageReferenceCounter

Interface implemented by message and used by some 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 1.


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

Method Detail

incrementReferenceCounter

public void incrementReferenceCounter()
Increments the reference counter of the message.


decrementReferenceCounter

public boolean decrementReferenceCounter()
Decrements the reference counter of this message.

Returns:
true if the reference counter is null.


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