UnsafeChannel

cc.otavia.core.channel.UnsafeChannel

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def isActive: Boolean

Return true if the UnsafeChannel is active and so connected.

Return true if the UnsafeChannel is active and so connected.

Attributes

def isOpen: Boolean

Returns true if the UnsafeChannel is open and may get active later

Returns true if the UnsafeChannel is open and may get active later

Attributes

def isShutdown(direction: ChannelShutdownDirection): Boolean

Returns true if the ChannelShutdownDirection of the UnsafeChannel was shutdown before.

Returns true if the ChannelShutdownDirection of the UnsafeChannel was shutdown before.

Value parameters

direction

shutdown direction

Attributes

def setReadPlan(plan: ReadPlan): Unit
def unsafeBind(local: SocketAddress): Unit

Bind the Channel to the SocketAddress

Bind the Channel to the SocketAddress

Value parameters

localAddress

the SocketAddress to bound to.

Attributes

Throws
Exception

when an error happens.

def unsafeClose(cause: Option[Throwable]): Unit

Close the Channel

Close the Channel

Attributes

def unsafeConnect(remote: SocketAddress, local: Option[SocketAddress], fastOpen: Boolean): Unit
def unsafeDisconnect(): Unit

Disconnect this Channel from its remote peer

Disconnect this Channel from its remote peer

Attributes

Throws
Exception

thrown on error.

def unsafeOpen(path: Path, options: Seq[OpenOption], attrs: Seq[FileAttribute[_]]): Unit
def unsafeRead(readPlan: ReadPlan): Unit

Schedule a read operation.

Schedule a read operation.

Attributes

Throws
Exception

thrown on error.

Shutdown one direction of the Channel.

Shutdown one direction of the Channel.

Value parameters

direction

the direction to shut unsafewn.

Attributes

Throws
Exception

thrown on error.