publicsynchronizedvoid setRinging(long callId) { final @State int state = this.state.get(); if (this.state.get() != IDLE) {
logger.warn("Call state change from {} to RINGING", getStateName(state));
} this.state.set(RINGING);
if (this.callId.get() != 0) {
logger.warn("Call ID changed from {} to {}", this.callId, callId);
} this.callId.set(callId);
this.incomingCallCounter.incrementAndGet();
}
publicsynchronizedvoid setInitializing(long callId) { final @State int state = this.state.get(); if (state != RINGING && state != IDLE) {
logger.warn("Call state change from {} to INITIALIZING", getStateName(state));
} this.state.set(INITIALIZING);
finallong oldCallId = this.callId.get(); if (oldCallId != 0 && oldCallId != callId) {
logger.warn("Call ID changed from {} to {}", oldCallId, callId);
} this.callId.set(callId);
}
publicsynchronizedvoid setCalling(long callId) { final @State int state = this.state.get(); if (state != INITIALIZING) {
logger.warn("Call state change from {} to CALLING", getStateName(state));
} this.state.set(CALLING);
finallong oldCallId = this.callId.get(); if (oldCallId != callId) {
logger.warn("Call ID changed from {} to {}", oldCallId, callId);
} this.callId.set(callId);
}
publicsynchronizedvoid setDisconnecting(long callId) { final @State int state = this.state.get(); if (state != INITIALIZING && state != CALLING) {
logger.warn("Call state change from {} to DISCONNECTING", getStateName(state));
} this.state.set(DISCONNECTING);
finallong oldCallId = this.callId.get(); if (oldCallId != callId) {
logger.warn("Call ID changed from {} to {}", oldCallId, callId);
} this.callId.set(callId); this.answerReceived = false;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.