FilteredReader

gopher.impl.FilteredReadChannel.FilteredReader
class FilteredReader(nested: Reader[A]) extends Reader[A]

Attributes

Source
FilteredReadChannel.scala
Graph
Supertypes
trait Reader[A]
trait Expirable[Try[A] => Unit]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def canExpire: Boolean

called when reader/writer can become no more available for some reason

called when reader/writer can become no more available for some reason

Attributes

Definition Classes
Source
FilteredReadChannel.scala
override def capture(): Capture[Try[A] => Unit]

capture object, and after this we can or use one (markUsed will be called) or abandon (markFree)

capture object, and after this we can or use one (markUsed will be called) or abandon (markFree)

Attributes

Definition Classes
Source
FilteredReadChannel.scala
override def isExpired: Boolean

if this object is expired and should be deleted from queue (for example: when reader is belong to select group and some other action in this select group was performed)

if this object is expired and should be deleted from queue (for example: when reader is belong to select group and some other action in this select group was performed)

Attributes

Definition Classes
Source
FilteredReadChannel.scala
override def markFree(): Unit

Called when we can't use captured function (i.e. get function but ).

Called when we can't use captured function (i.e. get function but ).

Attributes

Definition Classes
Source
FilteredReadChannel.scala
override def markUsed(): Unit

Called when we submitt to task executor readFunction and now is safe to make exprire all other readers/writers in the same select group

Called when we submitt to task executor readFunction and now is safe to make exprire all other readers/writers in the same select group

Attributes

Definition Classes
Source
FilteredReadChannel.scala
def wrappedFun(fun: Try[A] => Unit): Try[A] => Unit

Attributes

Source
FilteredReadChannel.scala

Concrete fields

val markedUsed: AtomicBoolean

Attributes

Source
FilteredReadChannel.scala