org.apache.james.mailrepository
Class AvalonSpoolRepository

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.james.mailrepository.AvalonMailRepository
              |
              +--org.apache.james.mailrepository.AvalonSpoolRepository
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, MailRepository, SpoolRepository

public class AvalonSpoolRepository
extends AvalonMailRepository
implements SpoolRepository

Implementation of a MailRepository on a FileSystem. Requires a configuration element in the .conf.xml file of the form: Requires a logger called MailRepository.

Version:
1.0.0, 24/04/1999
Author:
Federico Barbieri , Charles Benett

Fields inherited from class org.apache.james.mailrepository.AvalonMailRepository
DEEP_DEBUG
 
Fields inherited from interface org.apache.james.services.SpoolRepository
SPOOL
 
Fields inherited from interface org.apache.james.services.MailRepository
MAIL
 
Constructor Summary
AvalonSpoolRepository()
           
 
Method Summary
 java.lang.String accept()
          Returns the key for an arbitrarily selected mail deposited in this Repository.
 java.lang.String accept(long delay)
          Returns the key for an arbitrarily select mail depository in this Repositry that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time.
 
Methods inherited from class org.apache.james.mailrepository.AvalonMailRepository
compose, configure, initialize, list, lock, remove, remove, retrieve, store, unlock
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.james.services.MailRepository
list, lock, remove, remove, retrieve, store, unlock
 

Constructor Detail

AvalonSpoolRepository

public AvalonSpoolRepository()
Method Detail

accept

public java.lang.String accept()
Description copied from interface: SpoolRepository
Returns the key for an arbitrarily selected mail deposited in this Repository. Useage: SpoolManager calls accept() to see if there are any unprocessed mails in the spool repository.
Specified by:
accept in interface SpoolRepository

accept

public java.lang.String accept(long delay)
Description copied from interface: SpoolRepository
Returns the key for an arbitrarily select mail depository in this Repositry that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time. Useage: RemoteDeliverySpool calls accept() with some delay and should block until an unprocessed mail is available.
Specified by:
accept in interface SpoolRepository


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."