|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource
com.twilio.sdk.resource.InstanceResource
com.twilio.sdk.resource.instance.Queue
public class Queue
The Queue represents a queue resource.
| Constructor Summary | |
|---|---|
Queue(TwilioRestClient client,
Map<String,Object> params)
Creates a Queue instance. |
|
Queue(TwilioRestClient client,
String sid)
Creates a Queue instance. |
|
| Method Summary | |
|---|---|
Member |
dequeueHeadOfQueue(String url,
String method)
Dequeue the head of the Queue, returning the Member or null if the Queue is empty. |
int |
getAverageWaitTime()
Returns the average wait time in the Queue |
int |
getCurrentSize()
Retrieves the current size of the Queue |
String |
getFriendlyName()
Retrieves the friendly name of this Queue. |
int |
getMaxSize()
Returns the max size of the Queue |
Member |
getMember(String callSid)
Return a single Member instance |
MemberList |
getMembers()
Retrieves the MemberList for this Queue |
String |
getSid()
Retrieves the queue sid of this Queue |
void |
setFriendlyName(String friendlyName)
Sets the friendly name of this Queue. |
void |
setMaxSize(int maxSize)
Sets the max size of this Queue. |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Queue(TwilioRestClient client,
String sid)
Queue instance.
client - the TwilioRestClient to usesid - the queue sid
public Queue(TwilioRestClient client,
Map<String,Object> params)
Queue instance.
client - the TwilioRestClient to useparams - the map of properties to read from| Method Detail |
|---|
public String getSid()
Queue
public String getFriendlyName()
public int getCurrentSize()
Queue
IllegalStateException - if the current size is not setpublic int getMaxSize()
Queue
Queuepublic int getAverageWaitTime()
Queue
public MemberList getMembers()
MemberList for this Queue
MemberListpublic Member getMember(String callSid)
public Member dequeueHeadOfQueue(String url,
String method)
throws TwilioRestException
Queue, returning the Member or null if the Queue is empty.
Control is transferred to the url and method passed in.
url - the url to transfer control tomethod - the method to use.
TwilioRestException
public void setFriendlyName(String friendlyName)
throws TwilioRestException
Queue.
friendlyName - the new friendly name
TwilioRestException - if setting the friendly name fails
public void setMaxSize(int maxSize)
throws TwilioRestException
Queue.
maxSize - the new max size of the queue
TwilioRestException - if setting the max size fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||