Class ServerTimeoutInterceptor
- java.lang.Object
-
- com.microsoft.azure.batch.BatchClientBehavior
-
- com.microsoft.azure.batch.interceptor.RequestInterceptor
-
- com.microsoft.azure.batch.interceptor.ServerTimeoutInterceptor
-
public class ServerTimeoutInterceptor extends RequestInterceptor
Sets Batch service request timeouts.
-
-
Constructor Summary
Constructors Constructor Description ServerTimeoutInterceptor(int timeout)
Initializes a newServerTimeoutInterceptor
for setting the service timeout interval for a request issued to the Batch service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
serverTimeout()
Gets the service timeout interval applied by thisServerTimeoutInterceptor
instance.-
Methods inherited from class com.microsoft.azure.batch.interceptor.RequestInterceptor
handler, withHandler
-
-
-
-
Constructor Detail
-
ServerTimeoutInterceptor
public ServerTimeoutInterceptor(int timeout)
Initializes a newServerTimeoutInterceptor
for setting the service timeout interval for a request issued to the Batch service.- Parameters:
timeout
- The service timeout interval, in seconds.
-
-
Method Detail
-
serverTimeout
public int serverTimeout()
Gets the service timeout interval applied by thisServerTimeoutInterceptor
instance.- Returns:
- The service timeout interval, in seconds.
-
-