All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.karalabe.iris.ServiceLimits Maven / Gradle / Ivy

Go to download

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).

There is a newer version: 1.0.0-preview-7
Show newest version
// 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy