Created
January 17, 2011 22:50
-
-
Save derekjw/783648 to your computer and use it in GitHub Desktop.
Alternate config for Akka using case classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package akka.config | |
case class AkkaConfig( | |
version: String = "1.1-SNAPSHOT", | |
enabledModules: List[String] = Nil, | |
timeUnit: String = "seconds", | |
enableJmx: Boolean = true, | |
boot: List[String] = Nil, | |
actor: ActorConfig = ActorConfig(), | |
stm: StmConfig = StmConfig(), | |
jta: JtaConfig = JtaConfig(), | |
http: HttpConfig = HttpConfig(), | |
remote: RemoteConfig = RemoteConfig()) | |
case class ActorConfig( | |
timeout: Int = 5, | |
serializeMessages: Boolean = false, | |
throughput: Int = 5, | |
throughputDeadlineTime: Int = -1, | |
dispatcherShutdownTimeout: Int = 1, | |
defaultDispatcher: DefaultDispatcherConfig = DefaultDispatcherConfig()) | |
case class DefaultDispatcherConfig( | |
dispatcher: String = "GlobalExecuterBasedEventDriven", | |
keepAliveTime: Int = 60, | |
corePoolSizeFactor: Double = 1.0, | |
maxPoolSizeFactor: Double = 4.0, | |
executorBounds: Int = -1, | |
allowCoreTimeout: Boolean = true, | |
rejectionPolicy: String = "caller-runs", | |
throughput: Int = 5, | |
throughputDeadlineTime: Int = -1, | |
aggregate: Boolean = false, | |
mailboxCapacity: Int = -1, | |
mailboxPushTimeout: Int = 10) | |
case class StmConfig( | |
fair: Boolean = true, | |
maxRetries: Int = 1000, | |
timeout: Int = 5, | |
writeSkew: Boolean = true, | |
blockingAllowed: Boolean = false, | |
interruptible: Boolean = false, | |
speculative: Boolean = true, | |
quickRelease: Boolean = true, | |
propagation: String = "requires", | |
traveLevel: String = "none", | |
hooks: Boolean = true, | |
jtaAware: Boolean = false) | |
case class JtaConfig( | |
provider: String = "from-jndi", | |
timeout: Int = 60) | |
case class HttpConfig() | |
case class RemoteConfig( | |
layer: String = "akka.remote.netty.NettyRemoteSupport", | |
server: ServerConfig = ServerConfig()) | |
case class ServerConfig( | |
hostname: String = "localhost", | |
port: Int = 2552) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment