Package com.twilio.rest.insights.v1.call
Class MetricReader
- java.lang.Object
-
- com.twilio.base.Reader<Metric>
-
- com.twilio.rest.insights.v1.call.MetricReader
-
-
Constructor Summary
Constructors Constructor Description MetricReader(String pathCallSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Metric>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<Metric>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<Metric>
nextPage(Page<Metric> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<Metric>
previousPage(Page<Metric> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<Metric>
read(TwilioRestClient client)
Execute a request using specified client.MetricReader
setDirection(Metric.StreamDirection direction)
MetricReader
setEdge(Metric.TwilioEdge edge)
MetricReader
setPageSize(Integer pageSize)
-
-
-
Constructor Detail
-
MetricReader
public MetricReader(String pathCallSid)
-
-
Method Detail
-
setEdge
public MetricReader setEdge(Metric.TwilioEdge edge)
-
setDirection
public MetricReader setDirection(Metric.StreamDirection direction)
-
setPageSize
public MetricReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Metric> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Metric> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Metric> previousPage(Page<Metric> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Metric>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Metric> nextPage(Page<Metric> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Metric> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-