Package 

Class CommandQueue

  • All Implemented Interfaces:
    java.io.Serializable , java.util.Queue , kotlin.collections.Collection , kotlin.collections.Iterable , kotlin.collections.MutableCollection , kotlin.collections.MutableIterable

    
    public final class CommandQueue<T extends Object>
    extends ConcurrentLinkedQueue<T>
                        
    • Method Summary

      Modifier and Type Method Description
      final T getPendingOperation()
      final Unit setPendingOperation(T pendingOperation)
      Integer getSize()
      final Unit enqueueCommand(T operation) Adds an operation onto the queue, see the BleOperationType class for more details.
      final Unit completePendingCommand() Finish a pending operation, often called in an Android callback.
      Unit clear()
      String toString()
      • Methods inherited from class live.ditto.transports.ble.CommandQueue

        add, addAll, contains, forEach, isEmpty, iterator, offer, peek, poll, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
      • Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue

        element, remove
      • Methods inherited from class java.util.AbstractQueue

        containsAll
      • Methods inherited from class kotlin.collections.MutableCollection

        parallelStream, stream, toArray
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait