Package org.openiam.idm.srvc.mailbox.dto
Class RoundRobinMailboxConfigurationStorage
- java.lang.Object
-
- org.openiam.idm.srvc.mailbox.dto.RoundRobinMailboxConfigurationStorage
-
- All Implemented Interfaces:
Serializable
public class RoundRobinMailboxConfigurationStorage extends Object implements Serializable
- Author:
- zaporozhec
Is used to store current mailbox configuration bean.
This object is stored in the Redis. and refreshed after each save/delete mailbox configs
If there are several active maibox configs which are not a faiolver configs for some others the round robin alg is used to send an email.
It means if there are 3 active mailbox configs than for 1st email #1 from the private final LinkedList
mailboxConfigurations; will be used, for 2nd #2, for 3rd - #d for 4th - 1st again and etc.. - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description RoundRobinMailboxConfigurationStorage(List<String> mailboxConfigurationIds)
-
-
-
Method Detail
-
next
public String next() throws BasicDataServiceException
This is thread-fast method. Should be synchronized- Returns:
- The current MailboxConfiguration to Use
- Throws:
BasicDataServiceException
-
-