CommandQueue

class CommandQueue<T>(handler: Handler, callbacks: CommandQueueCallback<T>, operationTimeout: Long) : ConcurrentLinkedQueue<T>

Constructors

Link copied to clipboard
constructor(handler: Handler, callbacks: CommandQueueCallback<T>, operationTimeout: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: T): Boolean
Link copied to clipboard
open override fun addAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard

Finish a pending operation, often called in an Android callback.

Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun element(): T
Link copied to clipboard
fun enqueueCommand(operation: T)

Adds an operation onto the queue, see the BleOperationType class for more details.

Link copied to clipboard
open override fun forEach(p0: Consumer<in T>)
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<T>
Link copied to clipboard
open override fun offer(p0: T): Boolean
Link copied to clipboard
open fun parallelStream(): Stream<T>
Link copied to clipboard
open override fun peek(): T
Link copied to clipboard
open override fun poll(): T
Link copied to clipboard
open override fun remove(): T
open override fun remove(element: T): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun removeIf(p0: Predicate<in T>): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
open override fun toArray(): Array<Any>
open override fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun toString(): String