public class ConnectOperation extends QueueOperation<android.bluetooth.BluetoothGatt>
| Modifier and Type | Method and Description |
|---|---|
protected void |
protectedRun(<any> emitter,
QueueReleaseInterface queueReleaseInterface)
This method must be overridden in a concrete operation implementations and should contain specific operation logic.
|
protected BleException |
provideException(android.os.DeadObjectException deadObjectException)
This function will be overridden in concrete operation implementations to provide an exception with needed context
|
java.lang.String |
toString() |
compareTo, definedPriority, runprotected void protectedRun(<any> emitter,
QueueReleaseInterface queueReleaseInterface)
QueueOperationQueueReleaseInterface.release() at appropriate point to release the queue for any other operations
that are queued.
If the emitter is cancelled, a responsibility of the operation is to call QueueReleaseInterface.release(). The radio
should be released as soon as the operation decides it won't interact with the BluetoothGatt anymore and
subsequent operations will be able to start. Check usage of QueueReleasingEmitterWrapper for convenience.protectedRun in class QueueOperation<android.bluetooth.BluetoothGatt>emitter - the emitter to be called in order to inform the caller about the output of a particular run of the operationqueueReleaseInterface - the queue release interface to release the queue when readyprotected BleException provideException(android.os.DeadObjectException deadObjectException)
QueueOperationprovideException in class QueueOperation<android.bluetooth.BluetoothGatt>deadObjectException - the cause for the exceptionpublic java.lang.String toString()
toString in class java.lang.Object