Skip navigation links
A B C F I O P Q R S T Z 

A

add(T) - Method in class com.squareup.tape2.ObjectQueue
Enqueues an entry that can be processed at any time.
add(byte[]) - Method in class com.squareup.tape2.QueueFile
Adds an element to the end of the queue.
add(byte[], int, int) - Method in class com.squareup.tape2.QueueFile
Adds an element to the end of the queue.
asList() - Method in class com.squareup.tape2.ObjectQueue
Returns the entries in the queue as an unmodifiable List.

B

build() - Method in class com.squareup.tape2.QueueFile.Builder
Constructs a new queue backed by the given builder.
Builder(File) - Constructor for class com.squareup.tape2.QueueFile.Builder
Start constructing a new queue backed by the given file.

C

clear() - Method in class com.squareup.tape2.ObjectQueue
Clears this queue.
clear() - Method in class com.squareup.tape2.QueueFile
Clears this queue.
close() - Method in class com.squareup.tape2.QueueFile
 
com.squareup.tape2 - package com.squareup.tape2
Tape is a collection of queue-related classes for Android and Java.
create(QueueFile, ObjectQueue.Converter<T>) - Static method in class com.squareup.tape2.ObjectQueue
A queue for objects that are atomically and durably serialized to file.
createInMemory() - Static method in class com.squareup.tape2.ObjectQueue
A queue for objects that are not serious enough to be written to disk.

F

file() - Method in class com.squareup.tape2.ObjectQueue
The underlying QueueFile backing this queue, or null if it's only in memory.
file() - Method in class com.squareup.tape2.QueueFile
The underlying File backing this queue.
forceLegacy(boolean) - Method in class com.squareup.tape2.QueueFile.Builder
When true, only the legacy (Tape 1.x) format will be used.
from(byte[]) - Method in interface com.squareup.tape2.ObjectQueue.Converter
Converts bytes to an object.

I

isEmpty() - Method in class com.squareup.tape2.ObjectQueue
Returns true if this queue contains no entries.
isEmpty() - Method in class com.squareup.tape2.QueueFile
Returns true if this queue contains no entries.
iterator() - Method in class com.squareup.tape2.QueueFile
Returns an iterator over elements in this QueueFile.

O

ObjectQueue<T> - Class in com.squareup.tape2
A queue of objects.
ObjectQueue() - Constructor for class com.squareup.tape2.ObjectQueue
 
ObjectQueue.Converter<T> - Interface in com.squareup.tape2
Convert a byte stream to and from a concrete type.

P

peek() - Method in class com.squareup.tape2.ObjectQueue
Returns the head of the queue, or null if the queue is empty.
peek(int) - Method in class com.squareup.tape2.ObjectQueue
Reads up to max entries from the head of the queue without removing the entries.
peek() - Method in class com.squareup.tape2.QueueFile
Reads the eldest element.

Q

QueueFile - Class in com.squareup.tape2
A reliable, efficient, file-based, FIFO queue.
QueueFile.Builder - Class in com.squareup.tape2
Fluent API for creating QueueFile instances.

R

remove() - Method in class com.squareup.tape2.ObjectQueue
Removes the head of the queue.
remove(int) - Method in class com.squareup.tape2.ObjectQueue
Removes n entries from the head of the queue.
remove() - Method in class com.squareup.tape2.QueueFile
Removes the eldest element.
remove(int) - Method in class com.squareup.tape2.QueueFile
Removes the eldest n elements.

S

size() - Method in class com.squareup.tape2.ObjectQueue
Returns the number of entries in the queue.
size() - Method in class com.squareup.tape2.QueueFile
Returns the number of elements in this queue.

T

toStream(T, OutputStream) - Method in interface com.squareup.tape2.ObjectQueue.Converter
Converts value to bytes written to the specified stream.
toString() - Method in class com.squareup.tape2.QueueFile
 

Z

zero(boolean) - Method in class com.squareup.tape2.QueueFile.Builder
When true, removing an element will also overwrite data with zero bytes.
A B C F I O P Q R S T Z 
Skip navigation links