T
- Batch holder typepublic abstract static class SyncableIBeaconConnection.SyncWriteBatchListener<T>
extends java.lang.Object
Abstract class used as listener to notify about batch updating device and syncing with REST API
Current implementation does nothing
Constructor and Description |
---|
SyncWriteBatchListener() |
Modifier and Type | Method and Description |
---|---|
void |
onBatchWriteError(int errorCode)
Informs that an error has occured during batch write operation.
|
void |
onSuccess(T batchHolder)
Invoked when beacon batch characteristics manipulation was success and invoking REST API succeed
|
void |
onSyncFailed(ClientException e)
Invoked when beacon batch characteristics manipulation was success, but invoking REST API failed
|
void |
onSyncWriteBatchStart(T batchHolder)
Informs that Android device starts writing parameters Batch to Beacon device.
|
void |
onWriteFailed()
Informs that write failed
|
public void onSyncWriteBatchStart(T batchHolder)
Informs that Android device starts writing parameters Batch to Beacon device.
batchHolder
- the batch holderpublic void onWriteFailed()
Informs that write failed
public void onBatchWriteError(int errorCode)
errorCode
- the error codepublic void onSyncFailed(ClientException e)
Invoked when beacon batch characteristics manipulation was success, but invoking REST API failed
No attempts to restore beacon old characteristics will be done
e
- the epublic void onSuccess(T batchHolder)
Invoked when beacon batch characteristics manipulation was success and invoking REST API succeed
batchHolder
- the batch holder