-
public final class WaitForConditionsConditions to apply to emails that you are waiting for
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWaitForConditions.CountTypeHow result size should be compared with the expected size. Exactly or at-least matching result? Values: eXACTLY,aTLEAST
public enumWaitForConditions.SortDirectionDirection to sort matching emails by created time Values: aSC,dESC
-
Field Summary
Fields Modifier and Type Field Description private final UUIDinboxIdprivate final Longtimeoutprivate final Integercountprivate final LongdelayTimeoutprivate final BooleanunreadOnlyprivate final WaitForConditions.CountTypecountTypeprivate final List<MatchOption>matchesprivate final WaitForConditions.SortDirectionsortDirectionprivate final OffsetDateTimesinceprivate final OffsetDateTimebefore
-
Constructor Summary
Constructors Constructor Description WaitForConditions(UUID inboxId, Long timeout, Integer count, Long delayTimeout, Boolean unreadOnly, WaitForConditions.CountType countType, List<MatchOption> matches, WaitForConditions.SortDirection sortDirection, OffsetDateTime since, OffsetDateTime before)
-
Method Summary
Modifier and Type Method Description final UUIDgetInboxId()final LonggetTimeout()final IntegergetCount()final LonggetDelayTimeout()final BooleangetUnreadOnly()final WaitForConditions.CountTypegetCountType()final List<MatchOption>getMatches()final WaitForConditions.SortDirectiongetSortDirection()final OffsetDateTimegetSince()final OffsetDateTimegetBefore()-
-
Constructor Detail
-
WaitForConditions
WaitForConditions(UUID inboxId, Long timeout, Integer count, Long delayTimeout, Boolean unreadOnly, WaitForConditions.CountType countType, List<MatchOption> matches, WaitForConditions.SortDirection sortDirection, OffsetDateTime since, OffsetDateTime before)
- Parameters:
inboxId- ID of inbox to search within and apply conditions to.timeout- Max time in milliseconds to retry thewaitForoperation until conditions are met.count- Number of results that should match conditions.delayTimeout- Max time in milliseconds to wait between retries if atimeoutis specified.unreadOnly- Apply conditions only to unread emails.countType- How result size should be compared with the expected size.matches- Conditions that should be matched for an email to qualify for results.sortDirection- Direction to sort matching emails by created timesince- ISO Date Time earliest time of email to consider.before- ISO Date Time latest time of email to consider.
-
-
Method Detail
-
getInboxId
final UUID getInboxId()
-
getTimeout
final Long getTimeout()
-
getDelayTimeout
final Long getDelayTimeout()
-
getUnreadOnly
final Boolean getUnreadOnly()
-
getCountType
final WaitForConditions.CountType getCountType()
-
getMatches
final List<MatchOption> getMatches()
-
getSortDirection
final WaitForConditions.SortDirection getSortDirection()
-
getSince
final OffsetDateTime getSince()
-
getBefore
final OffsetDateTime getBefore()
-
-
-
-