| |
|
| java.lang.Object org.getahead.dwrdemo.ticketcenter.CallCenter
CallCenter | public class CallCenter implements Runnable(Code) | | author: Joe Walker [joe at getahead dot ltd dot uk] |
calls | protected List<Call> calls(Code) | | The set of people in our database
|
log | final protected static Log log(Code) | | The log stream
|
random | protected Random random(Code) | | Used to generate random data
|
CallCenter | public CallCenter()(Code) | | Create a new publish thread and start it
|
addRandomKnownCall | protected void addRandomKnownCall()(Code) | | |
addRandomUnknownCall | protected void addRandomUnknownCall()(Code) | | |
alertSupervisor | public void alertSupervisor(Call fromWeb)(Code) | | |
cancelHandling | public void cancelHandling()(Code) | | |
completeHandling | public void completeHandling(Call fromWeb)(Code) | | |
getNextId | public static synchronized int getNextId()(Code) | | Get the next unique ID in a thread safe way
a unique id |
load | public void load()(Code) | | Called when the page first loads to ensure we have an up-to-date screen
|
removeRandomCall | protected void removeRandomCall()(Code) | | |
run | public void run()(Code) | | Called once every couple of seconds to take some random action
|
updateAll | protected void updateAll()(Code) | | |
|
|
|