Class/Object

com.github.scalaspring.akka.http

ServerBindingLifecycle

Related Docs: object ServerBindingLifecycle | package http

Permalink

class ServerBindingLifecycle extends SmartLifecycle with AkkaStreamsAutowiredImplicits with StrictLogging

Manages the lifecycle of an Akka HTTP ServerBinding, ensuring its lifecycle matches that of the containing Spring application context.

This is an internal management class and is not intended for direct use. An instance is automatically created by [AkkaHttpServerAutoConfiguration].

The Spring lifecycle phase (default 10) can be adjusted by setting the http.server.lifecycle.phase configuration property. Note that the phase MUST be greater than that of the ActorSystemLifecycle bean to ensure the underlying ActorSystem is started before, and is terminated after, the Akka HTTP server.

Linear Supertypes
StrictLogging, AkkaStreamsAutowiredImplicits, AkkaAutowiredImplicits, SmartLifecycle, Phased, Lifecycle, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerBindingLifecycle
  2. StrictLogging
  3. AkkaStreamsAutowiredImplicits
  4. AkkaAutowiredImplicits
  5. SmartLifecycle
  6. Phased
  7. Lifecycle
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServerBindingLifecycle(settings: ServerSettings, route: Route)

    Permalink

    settings

    binding settings

    route

    route definition

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def binding: Option[Future[ServerBinding]]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def doStart(): Future[ServerBinding]

    Permalink
    Attributes
    protected
  8. def doStop(binding: ServerBinding): Future[Unit]

    Permalink
    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. implicit def executor: ExecutionContextExecutor

    Permalink
    Definition Classes
    AkkaAutowiredImplicits
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getPhase(): Int

    Permalink
    Definition Classes
    ServerBindingLifecycle → Phased
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isAutoStartup(): Boolean

    Permalink
    Definition Classes
    ServerBindingLifecycle → SmartLifecycle
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isRunning(): Boolean

    Permalink
    Definition Classes
    ServerBindingLifecycle → Lifecycle
  19. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  20. implicit val materializer: Materializer

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. val phase: Int

    Permalink
    Attributes
    protected
  25. val route: Route

    Permalink

    route definition

  26. val settings: ServerSettings

    Permalink

    binding settings

  27. def start(): Unit

    Permalink
    Definition Classes
    ServerBindingLifecycle → Lifecycle
  28. def state: State

    Permalink
  29. def stop(): Unit

    Permalink
    Definition Classes
    ServerBindingLifecycle → Lifecycle
  30. def stop(callback: Runnable): Unit

    Permalink
    Definition Classes
    ServerBindingLifecycle → SmartLifecycle
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. implicit val system: ActorSystem

    Permalink
    Definition Classes
    AkkaAutowiredImplicits
  33. val timeout: String

    Permalink
    Attributes
    protected
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from AkkaAutowiredImplicits

Inherited from SmartLifecycle

Inherited from Phased

Inherited from Lifecycle

Inherited from AnyRef

Inherited from Any

Ungrouped