Class PageSizeInterceptor
- java.lang.Object
-
- com.microsoft.azure.batch.BatchClientBehavior
-
- com.microsoft.azure.batch.interceptor.RequestInterceptor
-
- com.microsoft.azure.batch.interceptor.PageSizeInterceptor
-
public class PageSizeInterceptor extends RequestInterceptor
Interceptor which contains a function used to set the maximum page size of a request. If there are multiple instances of this then the last set wins.
-
-
Constructor Summary
Constructors Constructor Description PageSizeInterceptor(int pageSize)
Initializes a newPageSizeInterceptor
for setting maximum page size of a request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
maxResults()
Gets the maximum number of items applied by thisPageSizeInterceptor
instance.-
Methods inherited from class com.microsoft.azure.batch.interceptor.RequestInterceptor
handler, withHandler
-
-
-
-
Constructor Detail
-
PageSizeInterceptor
public PageSizeInterceptor(int pageSize)
Initializes a newPageSizeInterceptor
for setting maximum page size of a request.- Parameters:
pageSize
- The maximum number of items to return in a response.
-
-
Method Detail
-
maxResults
public int maxResults()
Gets the maximum number of items applied by thisPageSizeInterceptor
instance.- Returns:
- The maximum number of items to return in a response.
-
-