1 17 18 package org.apache.james.services; 19 20 import org.apache.mailet.Mail; 21 22 29 public interface SpoolRepository 30 extends MailRepository { 31 32 36 public static interface AcceptFilter 37 { 38 48 boolean accept (String key, String state, long lastUpdated, String errorMessage) ; 49 50 51 56 long getWaitTime (); 57 } 58 59 63 String SPOOL = "SPOOL"; 64 65 72 Mail accept() throws InterruptedException ; 73 74 83 Mail accept(long delay) throws InterruptedException ; 84 85 95 Mail accept(AcceptFilter filter) throws InterruptedException ; 96 97 } 98 | Popular Tags |