public class ConnectionOperationQueueImpl extends java.lang.Object implements ConnectionOperationQueue, ConnectionSubscriptionWatcher
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionSubscribed()
Method to be called when the user subscribes to an individual
RxBleDevice.establishConnection(boolean) |
void |
onConnectionUnsubscribed()
Method to be called when the user unsubscribes to an individual
RxBleDevice.establishConnection(boolean) |
<T> <any> |
queue(Operation<T> operation)
Function that queues an
Operation for execution. |
void |
terminate(BleException disconnectException)
A method for terminating all operations that are still queued on the connection.
|
public <T> <any> queue(Operation<T> operation)
ClientOperationQueueOperation for execution.queue in interface ClientOperationQueueT - type of the operation valuesoperation - the operation to executepublic void terminate(BleException disconnectException)
ConnectionOperationQueueterminate in interface ConnectionOperationQueuedisconnectException - the exception to be passed to all queued operations subscriberspublic void onConnectionSubscribed()
ConnectionSubscriptionWatcherRxBleDevice.establishConnection(boolean)onConnectionSubscribed in interface ConnectionSubscriptionWatcherpublic void onConnectionUnsubscribed()
ConnectionSubscriptionWatcherRxBleDevice.establishConnection(boolean)onConnectionUnsubscribed in interface ConnectionSubscriptionWatcher