MCPcopy Index your code
hub / github.com/careercup/ctci / callCompleted

Method callCompleted

java/Chapter 8/Question8_2/Employee.java:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18 /* the issue is resolved, finish the call */
19 public void callCompleted() {
20 if (currentCall != null) {
21 /* Disconnect the call. */
22 currentCall.disconnect();
23
24 /* Free the employee */
25 currentCall = null;
26 }
27
28 /* Check if there is a call waiting in queue */
29 assignNewCall();
30 }
31
32 /*
33 * The issue has not been resolved. Escalate the call, and assign a new call

Callers

nothing calls this directly

Calls 2

assignNewCallMethod · 0.95
disconnectMethod · 0.80

Tested by

no test coverage detected