ClientChannelFactory

final class ClientChannelFactory(bufferSize: Int, group: Option[AsynchronousChannelGroup], channelOptions: ChannelOptions, scheduler: TickWheelExecutor, connectTimeout: Duration)

A factory for opening TCP connections to remote sockets

A factory for opening TCP connections to remote sockets

Provides a way to easily make TCP connections which can then serve as the Head for a pipeline

Value Params
bufferSize

default buffer size to perform reads

group

The AsynchronousChannelGroup which will manage the connection. None will use the system default

class Object
trait Matchable
class Any

Value members

Constructors

def this(bufferSize: Int, group: Option[AsynchronousChannelGroup], channelOptions: ChannelOptions)

Concrete methods

def connect(remoteAddress: SocketAddress, bufferSize: Int): Future[HeadStage[ByteBuffer]]