com
.
github
.
yruslan
.
channel
Channel
Related Docs:
object Channel
|
package channel
abstract
class
Channel
[
T
]
extends
ReadChannel
[
T
] with
WriteChannel
[
T
]
Linear Supertypes
WriteChannel
[
T
],
ReadChannel
[
T
],
ChannelLike
,
AnyRef
,
Any
Known Subclasses
AsyncChannel
,
SyncChannel
Ordering
Alphabetic
By Inheritance
Inherited
Channel
WriteChannel
ReadChannel
ChannelLike
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
Channel
()
Abstract Value Members
abstract
def
close
()
:
Unit
Definition Classes
WriteChannel
abstract
def
fetchValueOpt
()
:
Option
[
T
]
Attributes
protected
abstract
def
hasCapacity
:
Boolean
Attributes
protected
abstract
def
hasMessages
:
Boolean
Attributes
protected
abstract
def
isClosed
:
Boolean
Definition Classes
ChannelLike
abstract
def
recv
()
:
T
Definition Classes
ReadChannel
Annotations
@throws
(
...
)
abstract
def
send
(
value:
T
)
:
Unit
Definition Classes
WriteChannel
Annotations
@throws
(
...
)
abstract
def
tryRecv
(
timeout:
Duration
)
:
Option
[
T
]
Definition Classes
ReadChannel
Annotations
@throws
(
...
)
abstract
def
tryRecv
()
:
Option
[
T
]
Definition Classes
ReadChannel
abstract
def
trySend
(
value:
T
,
timeout:
Duration
)
:
Boolean
Definition Classes
WriteChannel
Annotations
@throws
(
...
)
abstract
def
trySend
(
value:
T
)
:
Boolean
Definition Classes
WriteChannel
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
final
def
awaitReaders
(
awaiter:
Awaiter
)
:
Boolean
Attributes
protected
Annotations
@throws
(
...
)
final
def
awaitReaders
()
:
Unit
Attributes
protected
Annotations
@throws
(
...
)
final
def
awaitWriters
(
awaiter:
Awaiter
)
:
Boolean
Attributes
protected
Annotations
@throws
(
...
)
final
def
awaitWriters
()
:
Unit
Attributes
protected
Annotations
@throws
(
...
)
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
var
closed
:
Boolean
Attributes
protected
val
crd
:
Condition
Attributes
protected
val
cwr
:
Condition
Attributes
protected
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
filter
(
f: (
T
) ⇒
Boolean
)
:
ReadChannel
[
T
]
Definition Classes
ReadChannel
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
foreach
[
U
]
(
f: (
T
) ⇒
U
)
:
Unit
Definition Classes
Channel
→
ReadChannel
Annotations
@throws
(
...
)
final
def
fornew
[
U
]
(
f: (
T
) ⇒
U
)
:
Unit
Definition Classes
Channel
→
ReadChannel
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
lock
:
ReentrantLock
Attributes
protected
def
map
[
U
]
(
f: (
T
) ⇒
U
)
:
ReadChannel
[
U
]
Definition Classes
ReadChannel
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
notifyReaders
()
:
Unit
Attributes
protected
final
def
notifyWriters
()
:
Unit
Attributes
protected
val
readWaiters
:
SimpleLinkedList
[
Semaphore
]
Attributes
protected
var
readers
:
Int
Attributes
protected
final
def
recver
(
action: (
T
) ⇒
Unit
)
:
Selector
Definition Classes
Channel
→
ReadChannel
final
def
sender
(
value:
T
)
(
action: ⇒
Unit
=
{}
)
:
Selector
Definition Classes
Channel
→
WriteChannel
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toList
:
List
[
T
]
Definition Classes
ReadChannel
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
withFilter
(
f: (
T
) ⇒
Boolean
)
:
ReadChannel
[
T
]
Definition Classes
ReadChannel
val
writeWaiters
:
SimpleLinkedList
[
Semaphore
]
Attributes
protected
var
writers
:
Int
Attributes
protected
Inherited from
WriteChannel
[
T
]
Inherited from
ReadChannel
[
T
]
Inherited from
ChannelLike
Inherited from
AnyRef
Inherited from
Any
Ungrouped