Kofax Mobile SDK API Reference
Public Member Functions | List of all members
TimeOutParameters Class Reference

Public Member Functions

 TimeOutParameters (long duration, TimeUnit timeUnit)
 
long getTimeOut ()
 
TimeUnit getUnit ()
 

Detailed Description

The TimeOutParameters class. This class corresponds to all connection timeouts: connect, read and write. If any operation exceeds the timeout, the process is cancelled, and an exception will be raised. A value of 0 means no timeout, otherwise values must be between 1 and Integer::MAX_VALUE when converted to milliseconds.

Constructor & Destructor Documentation

TimeOutParameters ( long  duration,
TimeUnit  timeUnit 
)
Parameters
durationThe amount of the timeout
timeUnitThe time unit associated with the duration
Exceptions
IllegalArgumentException

Member Function Documentation

long getTimeOut ( )
TimeUnit getUnit ( )

The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.