final class ServerBuilderOps extends AnyVal
- Alphabetic
- By Inheritance
- ServerBuilderOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ServerBuilderOps(builder: ServerBuilder[_])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val builder: ServerBuilder[_]
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
resource[F[_]](implicit F: Sync[F]): Resource[F, Server]
Builds a
Server
into a bracketed resource.Builds a
Server
into a bracketed resource. The server is shut down when the resource is released. Shutdown is as follows:1. We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls. 2. We block for up to 30 seconds on termination, using the blocking context 3. If the server is not yet terminated, we trigger a forceful shutdown
For different tradeoffs in shutdown behavior, see {{resourceWithShutdown}}.
-
def
resourceWithShutdown[F[_]](shutdown: (Server) ⇒ F[Unit])(implicit F: Sync[F]): Resource[F, Server]
Builds a
Server
into a bracketed resource.Builds a
Server
into a bracketed resource. The server is shut down when the resource is released.- shutdown
Determines the behavior of the cleanup of the server, with respect to forceful vs. graceful shutdown and how to poll or block for termination.
-
def
stream[F[_]](implicit F: Sync[F]): Stream[F, Server]
Builds a
Server
into a bracketed stream.Builds a
Server
into a bracketed stream. The server is shut down when the stream is complete. Shutdown is as follows:1. We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls. 2. We block for up to 30 seconds on termination, using the blocking context 3. If the server is not yet terminated, we trigger a forceful shutdown
For different tradeoffs in shutdown behavior, see {{streamWithShutdown}}.
-
def
streamWithShutdown[F[_]](shutdown: (Server) ⇒ F[Unit])(implicit F: Sync[F]): Stream[F, Server]
Builds a
Server
into a bracketed stream.Builds a
Server
into a bracketed stream. The server is shut down when the stream is complete.- shutdown
Determines the behavior of the cleanup of the server, with respect to forceful vs. graceful shutdown and how to poll or block for termination.
-
def
toString(): String
- Definition Classes
- Any