com.karalabe.iris.ServiceLimits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iris Show documentation
Show all versions of iris Show documentation
Iris is an attempt at bringing the simplicity and elegance of cloud computing to the application layer. Consumer clouds provide unlimited virtual machines at the click of a button, but leaves it to developer to wire them together. Iris ensures that you can forget about networking challenges and instead focus on solving your own domain problems. It is a completely decentralized messaging solution for simplifying the design and implementation of cloud services. Among others, Iris features zero-configuration (i.e. start it up and it will do its magic), semantic addressing (i.e. application use textual names to address each other), clusters as units (i.e. automatic load balancing between apps of the same name) and perfect secrecy (i.e. all network traffic is encrypted).
// Copyright (c) 2014 Project Iris. All rights reserved.
//
// The current language binding is an official support library of the Iris
// cloud messaging framework, and as such, the same licensing terms apply.
// For details please see http://iris.karalabe.com/downloads#License
package com.karalabe.iris;
/**
* User limits of the threading and memory usage of a registered service.
*/
public class ServiceLimits {
/** Broadcast handlers to execute concurrently */
public int broadcastThreads = 4 * Runtime.getRuntime().availableProcessors();
/** Memory allowance for pending broadcasts */
public int broadcastMemory = 64 * 1024 * 1024;
/** Request handlers to execute concurrently */
public int requestThreads = 4 * Runtime.getRuntime().availableProcessors();
/** Memory allowance for pending requests */
public int requestMemory = 64 * 1024 * 1024;
}