|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.veriplace.client.util.AbstractPollingHandler
public class AbstractPollingHandler
Basic implementation of PollingHandler that provides empty stubs for
all handler methods.
| Constructor Summary | |
|---|---|
AbstractPollingHandler()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
beginLocationBatch(PollingManager manager,
LocationUpdates locationUpdates)
Called by PollingManager when a batch of locations is about to become available. |
void |
endLocationBatch(PollingManager manager,
java.lang.Object batch)
Called by PollingManager when all the locations from the last update request have been processed. |
void |
handleLocationQueryException(PollingManager manager,
User user,
LocationUpdateReference locationUpdateReference,
java.lang.Object batch,
VeriplaceException exception)
Called by PollingManager when a call to PollingAPI.getUpdateLocation(com.veriplace.client.LocationUpdateReference, com.veriplace.oauth.consumer.Token, java.lang.Integer) caused an
exception so that the location details for an update could not be
retrieved, even though the original call to
PollingAPI.getUpdates(Integer) succeeded. |
void |
handleUpdateQueryException(PollingManager manager,
VeriplaceException exception)
Called by PollingManager when a call to PollingAPI.getUpdates(Integer) caused an
exception. |
void |
receivedLocation(PollingManager manager,
User user,
Location location,
LocationUpdateReference locRef,
java.lang.Object batch)
Called by PollingManager when a new location becomes available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPollingHandler()
| Method Detail |
|---|
public java.lang.Object beginLocationBatch(PollingManager manager,
LocationUpdates locationUpdates)
PollingHandler
beginLocationBatch in interface PollingHandlermanager - the PollingManager that is calling this handlerlocationUpdates - the LocationUpdates object representing the
current query results (does not include location details)
public void receivedLocation(PollingManager manager,
User user,
Location location,
LocationUpdateReference locRef,
java.lang.Object batch)
PollingHandler
receivedLocation in interface PollingHandlermanager - the PollingManager that is calling this handleruser - the Veriplace user identifierlocation - the Veriplace locationlocRef - uniquely identifies the locationbatch - the value previously returned by
PollingHandler.beginLocationBatch(com.veriplace.client.util.PollingManager, com.veriplace.client.LocationUpdates)
public void endLocationBatch(PollingManager manager,
java.lang.Object batch)
PollingHandler
endLocationBatch in interface PollingHandlermanager - the PollingManager that is calling this handlerbatch - the value previously returned by
PollingHandler.beginLocationBatch(com.veriplace.client.util.PollingManager, com.veriplace.client.LocationUpdates)
public void handleUpdateQueryException(PollingManager manager,
VeriplaceException exception)
PollingHandlerPollingAPI.getUpdates(Integer) caused an
exception.
handleUpdateQueryException in interface PollingHandlermanager - the PollingManager that is calling this handlerexception - the exception that was thrown
public void handleLocationQueryException(PollingManager manager,
User user,
LocationUpdateReference locationUpdateReference,
java.lang.Object batch,
VeriplaceException exception)
PollingHandlerPollingAPI.getUpdateLocation(com.veriplace.client.LocationUpdateReference, com.veriplace.oauth.consumer.Token, java.lang.Integer) caused an
exception so that the location details for an update could not be
retrieved, even though the original call to
PollingAPI.getUpdates(Integer) succeeded.
handleLocationQueryException in interface PollingHandlermanager - the PollingManager that is calling this handleruser - the user whose location was being queriedlocationUpdateReference - the unique identifier of the locationbatch - the value previously returned by
PollingHandler.beginLocationBatch(com.veriplace.client.util.PollingManager, com.veriplace.client.LocationUpdates)exception - the exception that was thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||