SourceQueue

com.netflix.atlas.pekko.StreamOps.SourceQueue
final class SourceQueue[T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def complete(): Unit

Indicate that the use of the queue is complete. This will allow the associated stream to finish processing elements and then shutdown. Any new elements offered to the queue will be dropped.

Indicate that the use of the queue is complete. This will allow the associated stream to finish processing elements and then shutdown. Any new elements offered to the queue will be dropped.

Attributes

def isOpen: Boolean

Check if the queue is open to take more data.

Check if the queue is open to take more data.

Attributes

def offer(value: T): Boolean

Add the value into the queue if there is room. Returns true if the value was successfully enqueued.

Add the value into the queue if there is room. Returns true if the value was successfully enqueued.

Attributes

def size: Int

The approximate number of entries in the queue.

The approximate number of entries in the queue.

Attributes