public interface ObservationPoster
Modifier and Type | Interface and Description |
---|---|
static interface |
ObservationPoster.PostCallback
Defines callback methods for the asynchronous transaction
implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
abortPostAsync()
Cancels any transaction currently in progress.
|
PostResult |
doPost(java.util.List<Observation> observations)
Performs a transaction sending observations to the edge.
|
void |
doPostAsync(java.util.List<Observation> observations,
ObservationPoster.PostCallback callback)
Asynchronous version of the post transaction method,
sending observations to the edge.
|
void |
doPostAsync(Observation observation,
ObservationPoster.PostCallback callback)
Version of doPostAsync for single Observation.
|
int |
getContentLimit()
Returns the maximum number of observations that can be sent
in one transaction.
|
void |
setContentLimit(int limit)
Set the (maximum) number of observations to send in one
transaction.
|
void setContentLimit(int limit)
limit
- int getContentLimit()
PostResult doPost(java.util.List<Observation> observations)
observations
- objects to postvoid doPostAsync(java.util.List<Observation> observations, ObservationPoster.PostCallback callback)
observations
- objects to postcallback
- called when the transaction is overvoid doPostAsync(Observation observation, ObservationPoster.PostCallback callback)
observation
- object to postcallback
- called when the transaction is overvoid abortPostAsync()