Interface CallInfo
-
- All Known Subinterfaces:
BacklogCallInfo
public interface CallInfo
ACallInfo
object provides additional information about aCall
.- Since:
- 12.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.time.Duration>
getTotalDeliveredDuration()
The total delivered duration is the elapsed time while the call is ringing at a device.java.time.Duration
getTotalDuration()
The total duration of a call is the elapsed time between the received date and the finished date.java.util.Optional<java.time.Duration>
getTotalEstablishedDuration()
The total established duration is the elapsed time while the participants of the call can talk to each other (including on hold).
-
-
-
Method Detail
-
getTotalDuration
java.time.Duration getTotalDuration()
The total duration of a call is the elapsed time between the received date and the finished date. If the call has not been finished yet, the duration of the call is the elapsed time between the received date and the current time now.- Returns:
- the total duration of this call as a duration object.
- Since:
- 12.7
-
getTotalDeliveredDuration
java.util.Optional<java.time.Duration> getTotalDeliveredDuration()
The total delivered duration is the elapsed time while the call is ringing at a device. Since a call can ring at more than one device during its lifetime, all ringing durations will be summed up. The duration updates when leaving the delivered state. The optional will be empty if the call has not been delivered at any device yet.- Returns:
- the sum of all ringing durations of this call as duration object.
- Since:
- 12.7
-
getTotalEstablishedDuration
java.util.Optional<java.time.Duration> getTotalEstablishedDuration()
The total established duration is the elapsed time while the participants of the call can talk to each other (including on hold). Since a call can be transferred to multiple participants during its lifetime, all talking durations will be summed up. The duration updates when leaving the established state. The optional will be empty if the call has not been established at any device yet.- Returns:
- the sum of all talking durations of this call as duration object.
- Since:
- 12.7
-
-