-
-
Notifications
You must be signed in to change notification settings - Fork 762
Expand file tree
/
Copy pathTimeOutContainer.java
More file actions
32 lines (25 loc) · 735 Bytes
/
TimeOutContainer.java
File metadata and controls
32 lines (25 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package io.appium.java_client.pagefactory;
import java.util.concurrent.TimeUnit;
/**
* Instances of this class contain
* implicit time outs which are used by {@link AppiumElementLocator}
*/
class TimeOutContainer implements ResetsImplicitlyWaitTimeOut{
private long timeOutValue;
private TimeUnit timeUnit;
TimeOutContainer(long initialTimeOutValue, TimeUnit initialTimeUnit){
this.timeOutValue = initialTimeOutValue;
this.timeUnit = initialTimeUnit;
}
@Override
public void resetImplicitlyWaitTimeOut(long timeOut, TimeUnit timeUnit) {
this.timeOutValue = timeOut;
this.timeUnit = timeUnit;
}
long getTimeValue(){
return timeOutValue;
}
TimeUnit getTimeUnitValue(){
return timeUnit;
}
}