org.mailster.pop3.mailbox
Class SoftSmtpMessageReference

java.lang.Object
  extended by org.mailster.util.AbstractReloadableSoftReference<java.lang.Long,SmtpMessage>
      extended by org.mailster.pop3.mailbox.SoftSmtpMessageReference

public class SoftSmtpMessageReference
extends AbstractReloadableSoftReference<java.lang.Long,SmtpMessage>

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

SoftSmtpMessageReference.java - Provides a reloadable soft reference for a SmtpMessage.

Version:
$Revision: 1.10 $, $Date: 2009/02/03 00:56:00 $
Author:
Edouard De Oliveira

Field Summary
private static org.slf4j.Logger log
           
private static java.lang.String TEMP_DIRECTORY
           
private  java.lang.String tmpFileName
           
 
Constructor Summary
SoftSmtpMessageReference(java.lang.Long key, SmtpMessage object)
           
 
Method Summary
 void delete()
           
 SmtpMessage reload()
           
 void store(SmtpMessage object)
           
 
Methods inherited from class org.mailster.util.AbstractReloadableSoftReference
get, getKey, getReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.slf4j.Logger log

TEMP_DIRECTORY

private static final java.lang.String TEMP_DIRECTORY

tmpFileName

private java.lang.String tmpFileName
Constructor Detail

SoftSmtpMessageReference

public SoftSmtpMessageReference(java.lang.Long key,
                                SmtpMessage object)
Method Detail

reload

public SmtpMessage reload()
Specified by:
reload in class AbstractReloadableSoftReference<java.lang.Long,SmtpMessage>

store

public void store(SmtpMessage object)
Specified by:
store in class AbstractReloadableSoftReference<java.lang.Long,SmtpMessage>

delete

public void delete()
Specified by:
delete in class AbstractReloadableSoftReference<java.lang.Long,SmtpMessage>