-
public final class WaitForConditionsConditions that a
waitForXEmailsendpoint operates on. The methods wait until given conditions are met or a timeout is reached. If the conditions are met without needing to wait the results will be returned immediately.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWaitForConditions.CountTypeHow should the found count be compared to the expected count. 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 Integercountprivate final WaitForConditions.CountTypecountTypeprivate final UUIDinboxIdprivate final List<MatchOption>matchesprivate final WaitForConditions.SortDirectionsortDirectionprivate final Longtimeoutprivate final BooleanunreadOnly
-
Constructor Summary
Constructors Constructor Description WaitForConditions(Integer count, WaitForConditions.CountType countType, UUID inboxId, List<MatchOption> matches, WaitForConditions.SortDirection sortDirection, Long timeout, Boolean unreadOnly)
-
Method Summary
Modifier and Type Method Description final IntegergetCount()final WaitForConditions.CountTypegetCountType()final UUIDgetInboxId()final List<MatchOption>getMatches()final WaitForConditions.SortDirectiongetSortDirection()final LonggetTimeout()final BooleangetUnreadOnly()-
-
Constructor Detail
-
WaitForConditions
WaitForConditions(Integer count, WaitForConditions.CountType countType, UUID inboxId, List<MatchOption> matches, WaitForConditions.SortDirection sortDirection, Long timeout, Boolean unreadOnly)
- Parameters:
count- Number of results that should match conditions.countType- How should the found count be compared to the expected count.inboxId- ID of inbox to search within and apply conditions to.matches- Conditions that should be matched for an email to qualify for results.sortDirection- Direction to sort matching emails by created timetimeout- Max time in milliseconds to retry thewaitForoperation until conditions are met.unreadOnly- Apply conditions only to unread emails.
-
-
Method Detail
-
getCountType
final WaitForConditions.CountType getCountType()
-
getInboxId
final UUID getInboxId()
-
getMatches
final List<MatchOption> getMatches()
-
getSortDirection
final WaitForConditions.SortDirection getSortDirection()
-
getTimeout
final Long getTimeout()
-
getUnreadOnly
final Boolean getUnreadOnly()
-
-
-
-