|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webrender.service.AsyncMonitorService
public abstract class AsyncMonitorService
Abstract base service for handling server poll requests to determine if any
asynchronous operations affecting a UserInstance have been
performed since the last server interaction, such that the client might
resynchronize with the server.
An instance of this service must be registered with the
ServiceRegistry if asynchronous polling is required.
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_ID
Asynchronous monitoring service identifier. |
| Fields inherited from interface nextapp.echo2.webrender.Service |
|---|
DO_NOT_CACHE |
| Constructor Summary | |
|---|---|
AsyncMonitorService()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the unique identifier of this service. |
int |
getVersion()
Returns the version of the service to be retrieved. |
protected abstract boolean |
isSynchronizationRequired(UserInstance userInstance)
Determines if the specified UserInstance requires
immediate synchronization. |
void |
service(Connection conn)
Services an HTTP request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SERVICE_ID
| Constructor Detail |
|---|
public AsyncMonitorService()
| Method Detail |
|---|
public java.lang.String getId()
Service
getId in interface ServiceService.getId()public int getVersion()
ServicegetVersion() should return distinct values whenever the
service's content may have changed.
getVersion in interface ServiceService.getVersion()protected abstract boolean isSynchronizationRequired(UserInstance userInstance)
UserInstance requires
immediate synchronization.
userInstance - the UserInstance
UserInstance requires immediate
client-server synchronization
public void service(Connection conn)
throws java.io.IOException
Service
service in interface Serviceconn - A Connection object which wraps
HttpServletRequest and
HttpServletResponse objects and provides
access to the facilities of the Echo application container.
java.io.IOException - in the event of errors related to processing the
HTTP request or producing a response.Service.service(nextapp.echo2.webrender.Connection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||