Item

io.github.andrebeat.pool.ArrayBlockingQueuePool.Item
abstract protected class Item(val r: Ref[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def consume(): Unit

This method is called whenever the item is consumed from the queue.

This method is called whenever the item is consumed from the queue.

Attributes

def offerSuccess(): Unit

This method is called whenever the item is successfully inserted in the queue.

This method is called whenever the item is successfully inserted in the queue.

Attributes

Concrete methods

def destroy(): Unit

This method is only called whenever using a Soft/Weak reference that was invalidated by the garbage collector. Whenever this method is called it is considered that the value is consumed.

This method is only called whenever using a Soft/Weak reference that was invalidated by the garbage collector. Whenever this method is called it is considered that the value is consumed.

Attributes

def get(): A

This method should only be called from this class and it is guaranteed that the value is always defined before calling. Whenever this method is called it is considered that the value is consumed.

This method should only be called from this class and it is guaranteed that the value is always defined before calling. Whenever this method is called it is considered that the value is consumed.

Attributes

def isDefined(): Boolean

Concrete fields

val r: Ref[A]