All Packages This Package Class Hierarchy Class Search Index
Summary |
public interface SyncHandler { // Methods 3 public abstract void destroy() throws Exception; public abstract void init() throws Exception; public abstract void service(Link) throws Exception; }
Implementations of this interface are used in conjunction with the SyncServer class.
They contain all the application-specific knowlegde that is required to service incoming
connections.
The SyncServer will accept connection requests from PalmOS devices and then direct them
at your implementation of this interface.
Only one instance of your implementation will be used to service all incoming connections,
which may occur simultaneously.
This means that your implementation of this interface should either not use global
variables, or needs to carefully synchronize access to them.
Basically, this is an adaption of JavaSoft's Servlet principle. You might want to read
the documentation that comes with JavaSoft's JSDK to gain a better understanding.
See Also: SyncServer
Methods |
· init | Summary | Top |
public abstract void init() throws Exception
Initialize the SyncHandler. This method is guaranteed to be called exactly once before the SyncHandler is being used to handle incoming connections.
· service | Summary | Top |
public abstract void service(Link link) throws Exception
Service an incoming connection. This method is invoked everytime a device needs to be serviced.
Parameter Description link the Link which is associated with the connection
· destroy | Summary | Top |
public abstract void destroy() throws Exception
Free all resources. This method will be invoked when the SyncHandler is no longer needed. The SyncHandler should free all the resources it possessed.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7