T
- type of the resourcepublic abstract class Reader<T extends Resource> extends Object
Constructor and Description |
---|
Reader() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<ResourceSet<T>> |
async()
Execute an async request using default client.
|
com.google.common.util.concurrent.ListenableFuture<ResourceSet<T>> |
async(TwilioRestClient client)
Execute an async request using specified client.
|
ResourceSet<T> |
execute()
Execute a request using default client.
|
abstract ResourceSet<T> |
execute(TwilioRestClient client)
Execute a request using specified client.
|
Page<T> |
firstPage()
Fetch the first page of resources.
|
abstract Page<T> |
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.
|
int |
getPageSize() |
Page<T> |
nextPage(Page<T> page)
Fetch the following page of resources.
|
abstract Page<T> |
nextPage(Page<T> page,
TwilioRestClient client)
Fetch the following page of resources using specified client.
|
Reader<T> |
pageSize(int pageSize) |
public ResourceSet<T> execute()
public abstract ResourceSet<T> execute(TwilioRestClient client)
client
- client used to make requestpublic com.google.common.util.concurrent.ListenableFuture<ResourceSet<T>> async()
public com.google.common.util.concurrent.ListenableFuture<ResourceSet<T>> async(TwilioRestClient client)
client
- client used to make requestpublic Page<T> firstPage()
public abstract Page<T> firstPage(TwilioRestClient client)
client
- client used to fetchpublic Page<T> nextPage(Page<T> page)
page
- current page of resourcespublic abstract Page<T> nextPage(Page<T> page, TwilioRestClient client)
page
- current page of resourcesclient
- client used to fetchpublic int getPageSize()
Copyright © 2011 Twilio, Inc. All Rights Reserved.