class Selector extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Selector
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Selector(selector: java.nio.channels.Selector)
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreachSelectedKey[R, E](f: (SelectionKey) ⇒ ZIO[R, E, Boolean]): ZIO[R, E, Unit]
Performs an effect with each selected key.
Performs an effect with each selected key.
If the result of effect is true, the key will be removed from the selected-key set, which is usually what you want after successfully handling a selected key.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final val keys: IO[ClosedSelectorException, Set[SelectionKey]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final val provider: UIO[SelectorProvider]
- final def removeKey(key: SelectionKey): IO[ClosedSelectorException, Unit]
-
final
def
select: ZIO[Blocking, Exception, Int]
Can throw IOException and ClosedSelectorException.
-
final
def
select(timeout: Duration): ZIO[Blocking, Exception, Int]
Can throw IOException and ClosedSelectorException.
-
final
val
selectNow: IO[Exception, Int]
Can throw IOException and ClosedSelectorException.
-
final
val
selectedKeys: IO[ClosedSelectorException, Set[SelectionKey]]
Returns this selector's selected-key set.
Returns this selector's selected-key set.
Note that the returned set it mutable - keys may be removed from, but not directly added to it. Any attempt to add an object to the key set will cause an
UnsupportedOperationExceptionto be thrown. The selected-key set is not thread-safe. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... ) @native()
- final val wakeup: IO[Nothing, Unit]