com.salesforce.android.chat.core.QueueListener |
Listener interface for retrieving queue position updates while connecting to a chat session.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onQueuePositionUpdate(int queuePosition)
Called when the queue position for the visitor has been updated.
|
Called when the queue position for the visitor has been updated.
The queue position is based on comparing the order a visitor has been added to the connection queue compared against the total capacity of all agents capable of handling that chat request.
The final queue position is q = max(n - c, 0), where: n = the position of the visitor compared to all waiting visitors c = the total capacity of all agents.
For example, if the total capacity is 10, the first 10 waiting visitors will have a position of 0, and the 11th will have a position of 1... etc.
The rationale is that agents are able to accept and address multiple chat sessions simultaneously up to their configured capacity.
queuePosition | The current waiting position for a visitor. |
---|