Index

A B C D E F G H I K M P R S T U V 
All Classes and Interfaces|All Packages

A

add(K) - Method in class io.aiven.commons.collections.RingBuffer
Adds a new item if it is not already present.
ALLOW - Enum constant in enum class io.aiven.commons.collections.RingBuffer.DuplicateHandling
Allow duplicates in the buffer.
asBytes(double) - Method in enum class io.aiven.commons.collections.Scale
Gets the number of bytes found in the specified number of units.
asMilliseconds(double) - Method in enum class io.aiven.commons.collections.TimeScale
Gets the number of milliseconds in the unitcount number of TimeUnits.

B

B - Enum constant in enum class io.aiven.commons.collections.Scale
A byte.
bytes - Variable in enum class io.aiven.commons.collections.Scale
The number of bytes in a single unit of the scale.

C

contains(K) - Method in class io.aiven.commons.collections.RingBuffer
Determines if the item is in the buffer.

D

DAYS - Enum constant in enum class io.aiven.commons.collections.TimeScale
days
DELETE - Enum constant in enum class io.aiven.commons.collections.RingBuffer.DuplicateHandling
Move the duplicate entry to the tail of the buffer.
displayValue(long) - Method in enum class io.aiven.commons.collections.Scale
Creates a String using the scale. if the scale is not Scale.B then it is followed by the number of bytes within a set of parenthesis.
displayValue(long) - Method in enum class io.aiven.commons.collections.TimeScale
Format the number of milliseconds in this TimeScale along with the number of Milliseconds.

E

equals(Object) - Method in class io.aiven.commons.collections.RingBuffer
 

F

format(long) - Method in enum class io.aiven.commons.collections.Scale
Formats the byteCount at this scale.
format(long) - Method in enum class io.aiven.commons.collections.TimeScale
Format the number of milliseconds into this TimeScale.

G

GB - Enum constant in enum class io.aiven.commons.collections.Scale
SI Scale Gigabttes
getNextEjected() - Method in class io.aiven.commons.collections.RingBuffer
Gets the next item to be ejected.
GiB - Enum constant in enum class io.aiven.commons.collections.Scale
IEC Scale Gigabytes (2 ^ 30)

H

hashCode() - Method in class io.aiven.commons.collections.RingBuffer
 
head() - Method in class io.aiven.commons.collections.RingBuffer
Returns but does not remove the head of the buffer.
HOURS - Enum constant in enum class io.aiven.commons.collections.TimeScale
hours

I

IEC - Static variable in enum class io.aiven.commons.collections.Scale
The International Electrotechnical Commission (IEC) standardized binary prefixes.
io.aiven.commons.collections - module io.aiven.commons.collections
Collections module def
io.aiven.commons.collections - package io.aiven.commons.collections
 
isFull() - Method in class io.aiven.commons.collections.RingBuffer
Returns true if the buffer is full.

K

KB - Enum constant in enum class io.aiven.commons.collections.Scale
SI scale Kilobytes bytes
KiB - Enum constant in enum class io.aiven.commons.collections.Scale
IEC Scale Kilobytes (2 ^ 10).

M

MB - Enum constant in enum class io.aiven.commons.collections.Scale
SI scale Megabytes
MiB - Enum constant in enum class io.aiven.commons.collections.Scale
IEC Scale Megabytes (2 ^ 20)
milliseconds - Variable in enum class io.aiven.commons.collections.TimeScale
The number of milliseconds in one TimeUnit.
MILLISECONDS - Enum constant in enum class io.aiven.commons.collections.TimeScale
milliseconds
MINUTES - Enum constant in enum class io.aiven.commons.collections.TimeScale
minutes

P

PB - Enum constant in enum class io.aiven.commons.collections.Scale
SI Scale Petabytes
PiB - Enum constant in enum class io.aiven.commons.collections.Scale
IEC Scale Petabytes (2 ^ 50)

R

REJECT - Enum constant in enum class io.aiven.commons.collections.RingBuffer.DuplicateHandling
Reject (do not add) duplicates to the buffer.
remove(K) - Method in class io.aiven.commons.collections.RingBuffer
Removes a single instance of the item from the buffer.
RingBuffer<K> - Class in io.aiven.commons.collections
Implements a ring buffer of items.
RingBuffer(int) - Constructor for class io.aiven.commons.collections.RingBuffer
Create a Ring Buffer of a maximum size that rejects duplicates.
RingBuffer(int, RingBuffer.DuplicateHandling) - Constructor for class io.aiven.commons.collections.RingBuffer
Create a Ring Buffer of specified maximum size and potentially allowing duplicates.
RingBuffer.DuplicateHandling - Enum Class in io.aiven.commons.collections
How to handle the duplicates in the buffer.

S

Scale - Enum Class in io.aiven.commons.collections
A collection of byte prefixes with conversions and formatting.
scaleOf(long) - Static method in enum class io.aiven.commons.collections.TimeScale
Returns the largest TimeScale that will represent milliseconds with at least 1 unit.
scaleOf(long, List<Scale>) - Static method in enum class io.aiven.commons.collections.Scale
Determines the scale of the number of bytes.
SECONDS - Enum constant in enum class io.aiven.commons.collections.TimeScale
seconds
SI - Static variable in enum class io.aiven.commons.collections.Scale
The SI standardized prefix scales.
size(int) - Static method in enum class io.aiven.commons.collections.TimeScale
Formats the milliseconds into a TimeScale that best fits the number of milliseconds.
size(int, List<Scale>) - Static method in enum class io.aiven.commons.collections.Scale
Creates a formatted string for the scale that most closely represents the byteCount.

T

tail() - Method in class io.aiven.commons.collections.RingBuffer
Returns but does not remove the teal of the buffer.
TB - Enum constant in enum class io.aiven.commons.collections.Scale
SI Scale Terabytes
TiB - Enum constant in enum class io.aiven.commons.collections.Scale
IEC Scale Terabytes (2 ^ 40)
TimeScale - Enum Class in io.aiven.commons.collections
Scales milliseconds into standard human time units and standard human time units into milliseconds.
toString() - Method in class io.aiven.commons.collections.RingBuffer
 

U

unitName() - Method in enum class io.aiven.commons.collections.TimeScale
Gets the name of the units for this TimeScale.
units(int) - Method in enum class io.aiven.commons.collections.Scale
Formats the byteCount at this scale.
units(int) - Method in enum class io.aiven.commons.collections.TimeScale
Format the number of units of this TimeScale for output.

V

valueOf(String) - Static method in enum class io.aiven.commons.collections.RingBuffer.DuplicateHandling
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.aiven.commons.collections.Scale
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.aiven.commons.collections.TimeScale
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.aiven.commons.collections.RingBuffer.DuplicateHandling
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.aiven.commons.collections.Scale
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.aiven.commons.collections.TimeScale
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I K M P R S T U V 
All Classes and Interfaces|All Packages