T
- type of the resourcepublic abstract class Fetcher<T extends Resource> extends Object
Constructor and Description |
---|
Fetcher() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<T> |
async()
Execute an async request using default client.
|
com.google.common.util.concurrent.ListenableFuture<T> |
async(TwilioRestClient client)
Execute an async request using specified client.
|
T |
execute()
Execute a request using default client.
|
abstract T |
execute(TwilioRestClient client)
Execute a request using specified client.
|
public com.google.common.util.concurrent.ListenableFuture<T> async()
public com.google.common.util.concurrent.ListenableFuture<T> async(TwilioRestClient client)
client
- client used to make requestpublic T execute()
public abstract T execute(TwilioRestClient client)
client
- client used to make requestCopyright © 2011 Twilio, Inc. All Rights Reserved.