public class Synchronizer extends Object
Receives Comet long-polls from clients and sends back update instructions.
| Constructor and Description | 
|---|
| Synchronizer()Constructs a new synchronizer. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy()Invoked by the servlet engine when stopping. | 
| boolean | handleComet(HttpServletRequest request,
           HttpServletResponse response,
           CometEvent event)Handles a Comet request from a client. | 
| void | init()Invoked by the servlet engine when starting. | 
| void | update(String name)Invoked when a page fragment has been updated. | 
public void destroy()
public boolean handleComet(HttpServletRequest request, HttpServletResponse response, CometEvent event) throws IOException, ServletException
IOExceptionServletExceptionpublic void init()
public void update(String name)
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.