com.twitter.server

AbstractTwitterServer

abstract class AbstractTwitterServer extends TwitterServer

A Java-friendly version of the TwitterServer.

In addition to TwitterServer, this abstract class defines its own Java-friendly lifecycle methods onInit, preMain, postMain and onExit that might be overridden in a concrete class.

In order to launch the AbstractTwitterServer instance, the main method should be explicitly defined. It makes sense to define it within an inner class Main as shown below.

public class JavaServer extends AbstractTwitterServer {
public static class Main {
  public static void main(String[] args) {
    new JavaServer().main(args);
  }
}
}

The Main class containing the main method may be launched via java JavaServer$Main.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AbstractTwitterServer
  2. TwitterServer
  3. Stats
  4. Lifecycle
  5. Admin
  6. AdminHttpServer
  7. Hooks
  8. LogFormat
  9. EventSink
  10. Logging
  11. Linters
  12. App
  13. CloseAwaitably
  14. CloseAwaitably0
  15. Awaitable
  16. Closable
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractTwitterServer()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final val MinGrace: Duration

    Definition Classes
    App
  7. def addAdminRoute(route: Route): Unit

    Definition Classes
    AdminHttpServer
  8. def addAdminRoutes(newRoutes: Seq[Route]): Unit

    Definition Classes
    AdminHttpServer
  9. def adminBoundAddress: InetSocketAddress

    The address to which the Admin HTTP server is bound.

    The address to which the Admin HTTP server is bound.

    Definition Classes
    AdminHttpServer
  10. var adminHttpServer: ListeningServer

    Attributes
    protected
    Definition Classes
    AdminHttpServer
  11. val adminPort: Flag[InetSocketAddress]

    Definition Classes
    AdminHttpServer
  12. def allowUndefinedFlags: Boolean

    Attributes
    protected
    Definition Classes
    App
  13. val appendFlag: Flag[Boolean]

    Attributes
    protected[this]
    Definition Classes
    Logging
  14. def args: Array[String]

    Definition Classes
    App
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def close(deadline: Time): Future[Unit]

    Definition Classes
    App → Closable
  18. def close(after: Duration): Future[Unit]

    Definition Classes
    Closable
  19. final def close(): Future[Unit]

    Definition Classes
    Closable
  20. def closeAwaitably(f: ⇒ Future[Unit]): Future[Unit]

    Attributes
    protected
    Definition Classes
    CloseAwaitably0
  21. final def closeOnExit(closable: Closable): Unit

    Attributes
    protected
    Definition Classes
    App
  22. def defaultAppend: Boolean

    Definition Classes
    Logging
  23. def defaultCloseGracePeriod: Duration

    Definition Classes
    App
  24. def defaultFormatter: Formatter

    Definition Classes
    Logging
  25. def defaultHttpPort: Int

    Definition Classes
    AdminHttpServer
  26. def defaultLogLevel: Level

    Definition Classes
    Logging
  27. def defaultOutput: String

    Definition Classes
    Logging
  28. def defaultRollPolicy: Policy

    Definition Classes
    Logging
  29. def defaultRotateCount: Int

    Definition Classes
    Logging
  30. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  32. def exitOnError(reason: String): Unit

    Attributes
    protected
    Definition Classes
    App
  33. def failfastOnFlagsNotParsed: Boolean

    Attributes
    protected
    Definition Classes
    App
  34. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. val flag: Flags

    Definition Classes
    App
  36. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  37. def handlers: List[() ⇒ Handler]

    Definition Classes
    Logging
  38. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  39. val inferClassNamesFlag: Flag[Boolean]

    Attributes
    protected[this]
    Definition Classes
    Logging
  40. final def init(f: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    App
  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. def isReady(implicit permit: CanAwait): Boolean

    Definition Classes
    CloseAwaitably0 → Awaitable
  43. val levelFlag: Flag[Level]

    Attributes
    protected[this]
    Definition Classes
    Logging
  44. lazy val log: Logger

    Definition Classes
    Logging
  45. def loggerFactories: List[LoggerFactory]

    Definition Classes
    Logging
  46. def main(): Unit

    The main method of this server.

    The main method of this server.

    Annotations
    @throws( ... )
  47. final def main(args: Array[String]): Unit

    Definition Classes
    App
  48. val name: String

    Definition Classes
    App
  49. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  50. final def nonExitingMain(args: Array[String]): Unit

    Definition Classes
    App
  51. final def notify(): Unit

    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  53. def onExit(): Unit

    Called prior to application exiting.

  54. final def onExit(f: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    App
  55. def onInit(): Unit

    Called prior to application initialization.

  56. val outputFlag: Flag[String]

    Attributes
    protected[this]
    Definition Classes
    Logging
  57. def postMain(): Unit

    Called after the main method.

  58. final def postmain(f: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    App
  59. def preMain(): Unit

    Called before the main method.

  60. final def premain(f: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    App
  61. def ready(timeout: Duration)(implicit permit: CanAwait): AbstractTwitterServer.this.type

    Definition Classes
    CloseAwaitably0 → Awaitable
  62. def result(timeout: Duration)(implicit permit: CanAwait): Unit

    Definition Classes
    CloseAwaitably0 → Awaitable
  63. val rollPolicyFlag: Flag[Policy]

    Attributes
    protected[this]
    Definition Classes
    Logging
  64. val rotateCountFlag: Flag[Int]

    Attributes
    protected[this]
    Definition Classes
    Logging
  65. def routes: Seq[Route]

    Attributes
    protected
    Definition Classes
    Admin
  66. val statsReceiver: StatsReceiver

    Definition Classes
    Stats
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  68. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TwitterServer

Inherited from Stats

Inherited from Lifecycle

Inherited from Admin

Inherited from AdminHttpServer

Inherited from Hooks

Inherited from LogFormat

Inherited from EventSink

Inherited from Logging

Inherited from Linters

Inherited from App

Inherited from CloseAwaitably

Inherited from CloseAwaitably0[Unit]

Inherited from Awaitable[Unit]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped