org.apache.james.core
Class MimeMessageCopyOnWriteProxy.MessageReferenceTracker

java.lang.Object
  extended by org.apache.james.core.MimeMessageCopyOnWriteProxy.MessageReferenceTracker
Enclosing class:
MimeMessageCopyOnWriteProxy

protected static class MimeMessageCopyOnWriteProxy.MessageReferenceTracker
extends java.lang.Object

Used internally to track the reference count It is important that this is static otherwise it will keep a reference to the parent object.


Constructor Summary
MimeMessageCopyOnWriteProxy.MessageReferenceTracker(javax.mail.internet.MimeMessage ref)
           
 
Method Summary
protected  void decrementReferenceCount()
           
protected  int getReferenceCount()
           
 javax.mail.internet.MimeMessage getWrapped()
           
protected  void incrementReferenceCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeMessageCopyOnWriteProxy.MessageReferenceTracker

public MimeMessageCopyOnWriteProxy.MessageReferenceTracker(javax.mail.internet.MimeMessage ref)
Method Detail

incrementReferenceCount

protected void incrementReferenceCount()

decrementReferenceCount

protected void decrementReferenceCount()

getReferenceCount

protected int getReferenceCount()

getWrapped

public javax.mail.internet.MimeMessage getWrapped()


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.