abstract
class
AbstractTwitterServer extends TwitterServer
Instance Constructors
-
new
AbstractTwitterServer()
Value Members
-
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
final
def
==(arg0: Any): Boolean
-
final
val
MinGrace: Duration
-
def
addAdminRoute(route: Route): Unit
-
def
addAdminRoutes(newRoutes: Seq[Route]): Unit
-
def
adminBoundAddress: InetSocketAddress
-
-
val
adminPort: Flag[InetSocketAddress]
-
def
allowUndefinedFlags: Boolean
-
-
def
args: Array[String]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
close(deadline: Time): Future[Unit]
-
def
close(after: Duration): Future[Unit]
-
final
def
close(): Future[Unit]
-
def
closeAwaitably(f: ⇒ Future[Unit]): Future[Unit]
-
final
def
closeOnExit(closable: Closable): Unit
-
def
defaultAppend: Boolean
-
def
defaultCloseGracePeriod: Duration
-
def
defaultFormatter: Formatter
-
def
defaultHttpPort: Int
-
def
defaultLogLevel: Level
-
def
defaultOutput: String
-
def
defaultRollPolicy: Policy
-
def
defaultRotateCount: Int
-
-
-
def
exitOnError(reason: String): Unit
-
def
failfastOnFlagsNotParsed: Boolean
-
def
finalize(): Unit
-
-
final
def
getClass(): Class[_]
-
def
handlers: List[() ⇒ Handler]
-
def
hashCode(): Int
-
val
inferClassNamesFlag: Flag[Boolean]
-
final
def
init(f: ⇒ Unit): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
def
isReady(implicit permit: CanAwait): Boolean
-
val
levelFlag: Flag[Level]
-
lazy val
log: Logger
-
def
loggerFactories: List[LoggerFactory]
-
def
main(): Unit
-
final
def
main(args: Array[String]): Unit
-
val
name: String
-
-
final
def
nonExitingMain(args: Array[String]): Unit
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
onExit(): Unit
-
final
def
onExit(f: ⇒ Unit): Unit
-
def
onInit(): Unit
-
val
outputFlag: Flag[String]
-
def
postMain(): Unit
-
final
def
postmain(f: ⇒ Unit): Unit
-
def
preMain(): Unit
-
final
def
premain(f: ⇒ Unit): Unit
-
def
ready(timeout: Duration)(implicit permit: CanAwait): AbstractTwitterServer.this.type
-
def
result(timeout: Duration)(implicit permit: CanAwait): Unit
-
val
rollPolicyFlag: Flag[Policy]
-
val
rotateCountFlag: Flag[Int]
-
def
routes: Seq[Route]
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A Java-friendly version of the TwitterServer.
In addition to TwitterServer, this abstract class defines its own Java-friendly lifecycle methods
onInit
,preMain
,postMain
andonExit
that might be overridden in a concrete class.In order to launch the
AbstractTwitterServer
instance, themain
method should be explicitly defined. It makes sense to define it within an inner classMain
as shown below.The
Main
class containing themain
method may be launched viajava JavaServer$Main
.