Package 

Class QueueOperation

  • All Implemented Interfaces:
    com.polidea.rxandroidble2.internal.operations.Operation , java.lang.Comparable

    
    public abstract class QueueOperation<T>
     implements Operation<T>
                        

    The base class for all operations that are executed on the Bluetooth Queue. This class is intended to be a kind of wrapper over an Observable (returned by function run). Implements run interface which will be subscribed and unsubscribed on the application's main thread.

    • Method Summary

      Modifier and Type Method Description
      final Observable<T> run(QueueReleaseInterface queueReleaseInterface) A function that returns this operation as an Observable.When the returned observable is subscribed, this operation will be scheduledto be run on the main thread.
      Priority definedPriority() A function returning the priority of this operation
      int compareTo(@NonNull() Operation another) The function for determining which position in Bluetooth Radio's Priority Blocking Queuethis operation should take
      • Methods inherited from class com.polidea.rxandroidble2.internal.operations.Operation

        run
      • Methods inherited from class java.lang.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

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

      • run

         final Observable<T> run(QueueReleaseInterface queueReleaseInterface)

        A function that returns this operation as an Observable.When the returned observable is subscribed, this operation will be scheduledto be run on the main thread. When appropriate the call to run() will be executed.This operation is expected to call releaseRadio() at appropriate point after the run() was called.

      • compareTo

         int compareTo(@NonNull() Operation another)

        The function for determining which position in Bluetooth Radio's Priority Blocking Queuethis operation should take

        Parameters:
        another - another operation