Class DupeDetection
- java.lang.Object
-
- com.levigo.jadice.server.agent.email.DupeDetection
-
- Direct Known Subclasses:
NullDupeDetection
public class DupeDetection extends Object
A utility to avoid that a message is processed several times if the mailing system delivers it several times. The more one mistrusts the mailing system the more intensive the checks can be, seeDupeDetection.Mode
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DupeDetection.Mode
Possible modes how to handle the dupe detection.
-
Field Summary
Fields Modifier and Type Field Description static String[]
DEFAULT_HEADERS
The header files that are used as default for dupe detection in modesDupeDetection.Mode.HEADERS
andDupeDetection.Mode.HEADERS_AND_BODY
-
Constructor Summary
Constructors Constructor Description DupeDetection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detectDupes(MessageTransaction transaction)
void
finishTransaction(MessageTransaction transaction)
void
forgetSeen(MessageTransaction transaction)
List<String>
getDupeDetectionHeaders()
DupeDetection.Mode
getDupeDetectionMode()
void
setDupeDetectionHeaders(List<String> dupeDetectionHeaders)
void
setDupeDetectionMode(DupeDetection.Mode dupeDetectionMode)
-
-
-
Field Detail
-
DEFAULT_HEADERS
public static final String[] DEFAULT_HEADERS
The header files that are used as default for dupe detection in modesDupeDetection.Mode.HEADERS
andDupeDetection.Mode.HEADERS_AND_BODY
-
-
Method Detail
-
forgetSeen
public void forgetSeen(MessageTransaction transaction)
-
detectDupes
public void detectDupes(MessageTransaction transaction)
-
finishTransaction
public void finishTransaction(MessageTransaction transaction)
-
setDupeDetectionMode
public void setDupeDetectionMode(DupeDetection.Mode dupeDetectionMode)
-
getDupeDetectionMode
public DupeDetection.Mode getDupeDetectionMode()
-
-