Package com.github.mike10004.xvfbmanager
Class Poller.PollOutcome<E>
- java.lang.Object
-
- com.github.mike10004.xvfbmanager.Poller.PollOutcome<E>
-
- Type Parameters:
E- type of the resolved content
public static class Poller.PollOutcome<E> extends Object
Class that represents the outcome of a poll. Instances of this type are constructed by the poller at the conclusion of all polling. To clarify: a poll outcome refers to the end result after many poll attempts, and apoll answeris the answer to any individual poll attempt.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetNumAttempts()Gets the number of times the poll was attempted.inthashCode()StringtoString()
-
-
-
Field Detail
-
reason
public final Poller.StopReason reason
Reason polling stopped.
-
duration
public final Duration duration
Gets the polling duration. This may not be exact.
-
-
Method Detail
-
getNumAttempts
public int getNumAttempts()
Gets the number of times the poll was attempted. This is the numbef of times thecheck()function is invoked.- Returns:
- count of attempts
-
-