home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (application.conf)

This example Java source code file (application.conf) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

dispatcher, info

The application.conf Java example source code

akka {

extensions = ["akka.contrib.pattern.ClusterReceptionistExtension","akka.contrib.pattern.DistributedPubSubExtension"]
  loggers = ["akka.event.slf4j.Slf4jLogger"]
   loglevel = "INFO"

	actor {
		provider = "akka.cluster.ClusterActorRefProvider"
		serialize-messages = on
		serialize-creators = off
		
		     worker-dispatcher {
  				type = Dispatcher
  				mailbox-capacity = 3000
  				mailbox-push-timeout-time = 120s
			}
		
	 deployment {
	
		
      serializers {
        java = "akka.serialization.JavaSerializer"
        proto = "akka.remote.serialization.ProtobufSerializer"
      }
 
     
		
		}
	
	}
	
	remote {
	 	transport = "akka.remote.netty.NettyRemoteTransport"
	 	log-remote-lifecycle-events = off
	 	
	 	netty.tcp {
	  	    hostname = "localhost"
	  	    port = 0
	  	    maximum-frame-size = 99999999999b
	  	}

		transport-failure-detector {
    			heartbeat-interval = 120 s
    			acceptable-heartbeat-pause = 60 s
  		}
	}

	cluster {
	 failure-detector {
      threshold = 12
      acceptable-heartbeat-pause = 120s
      heartbeat-interval = 5s
      heartbeat-request {
        expected-response-after = 120s
      }
     }
	 jmx.enabled = on
	 enabled = on
	 allow-local-routees = off
		
	 auto-down-unreachable-after = off
     roles = ["master"]

	}
}

Other Java examples (source code examples)

Here is a short list of links related to this Java application.conf source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.