The Task Bag is intended to be used by cooperating clients, some of which add pairs (describing tasks) and others of which remove them (and carry out the tasks described). When a client is informed that no matching pair is available, it cannot continue with its work until a pair becomes available. Define an appropriate callback interface for use in this situation.

What will be an ideal response?

This callback can send the value required by a readPair or pairIn operation. Its method should not be a oneway as the client depends on receiving it to continue its work.

```
interface TaskBagCallback{
void data(in Value value);
}
```

Computer Science & Information Technology

You might also like to view...

The Report Footer displays text and data from:

A) Label boxes. B) Text boxes. C) Field Lists. D) both A & B.

Computer Science & Information Technology

The left pane of Slide Master view displays the slide masters and ________

A) slide templates associated with the slide master B) slide themes associated with the slide master C) slide properties associated with the slide master D) slide layouts associated with the slide master

Computer Science & Information Technology