final class NettyServerBuilder[F[_]] extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NettyServerBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new NettyServerBuilder(httpApp: HttpApp[F], serviceErrorHandler: ServiceErrorHandler[F], socketAddress: InetSocketAddress, idleTimeout: Duration, eventLoopThreads: Int, maxInitialLineLength: Int, maxHeaderSize: Int, maxChunkSize: Int, transport: NettyTransport, banner: Seq[String], executionContext: ExecutionContext, nettyChannelOptions: NettyChannelOptions, sslConfig: SslConfig[F], websocketsEnabled: Boolean, wsMaxFrameLength: Int)(implicit F: ConcurrentEffect[F])
Type Members
- case class Bound(address: InetSocketAddress, holder: EventLoopHolder[_ <: ServerChannel], channel: Channel) extends Product with Serializable
- case class EventLoopHolder[A <: ServerChannel](eventLoop: MultithreadEventLoopGroup)(implicit classTag: ClassTag[A]) extends Product with Serializable
- type Self = NettyServerBuilder[F]
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
- def allocated: F[(Server[F], F[Unit])]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bindAny(host: String = defaults.Host): Self
- def bindHttp(port: Int = defaults.HttpPort, host: String = defaults.Host): Self
- def bindLocal(port: Int): Self
- def bindSocketAddress(address: InetSocketAddress): Self
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def resource: Resource[F, Server[F]]
- def stream: Stream[F, Server[F]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withEventLoopThreads(nThreads: Int): Self
Socket selector threads.
Socket selector threads.
- nThreads
number of selector threads. Use
0
for netty default- returns
an updated builder
- def withExecutionContext(ec: ExecutionContext): Self
- def withHttpApp(httpApp: HttpApp[F]): Self
- def withIdleTimeout(duration: FiniteDuration): Self
- def withMaxChunkSize(size: Int): Self
- def withMaxHeaderSize(size: Int): Self
- def withMaxInitialLineLength(size: Int): Self
- def withNativeTransport: Self
- def withNettyChannelOptions(opts: NettyChannelOptions): Self
- def withNioTransport: Self
- def withServiceErrorHandler(handler: ServiceErrorHandler[F]): Self
-
def
withSslContext(sslContext: SSLContext, tlsParameters: TLSParameters = TLSParameters.Default): Self
Configures the server with TLS, using the provided
SSLContext
andSSLParameters
. - def withWebsockets: Self
- def withoutBanner: Self
- def withoutSsl: Self
- def withoutWebsockets: Self
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated