Package 

Interface ClientOperationQueue


  • 
    public interface ClientOperationQueue
    
                        

    Interface used for serialization of Operation execution. Native Android BLE API is asynchronous but does not queue operations on it's own. Operations like scanning, connecting, reading, writing in order to be successfully started need to be serialized at different levels. i.e. When dealing with a android.bluetooth.BluetoothGatt each read and write needs to be synchronized but changing connection priority does not. i.e.2 When starting to connect the android.bluetooth.BluetoothGatt the Android Stack does queue direct connections internally but due to a bug the callback may not be called — serializing connection establishment does allow for proper timeout management in this case

    • Method Summary

      Modifier and Type Method Description
      abstract <T> Observable<T> queue(Operation<T> operation) Function that queues an Operation for execution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • queue

         abstract <T> Observable<T> queue(Operation<T> operation)

        Function that queues an Operation for execution.

        Parameters:
        operation - the operation to execute