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