atories.java-extensions.2.0.1.0-RELEASE.source-code.promise-configuration.properties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-extensions Show documentation
Show all versions of java-extensions Show documentation
This is a library of Java utilities to help programming with lambda
just that a little bit more joyful, particularly for Java-8 developers
but not exclusively.
The newest version!
# Configuration properties for Promise objects.
#
# If this file contains invalid values, they will be ignored and system
# defaults will then apply.
#
# Ensure this file is available on the application classpath. Alternatively,
# provide these properties via the VM arguments using the -D parameter,
# but note they will override property values in this file. For clarity,
# property value priority is as follows:
# system property --> file property --> hardcoded default
#
# This is the classname of the thread pool, which happens to be
# the same as the system default. For an alternative implementation, configure
# the classname in this property.
#
# The custom thread pool must inherit from the ManagedPromisePoolExecutor
# class.
promise.managed.service.class=org.javalaboratories.core.concurrency.ManagedThreadPoolPromiseExecutor
# Configure the number of maximum active thread workers in this property. -1
# informs the PromiseConfiguration object to calculate the number of required
# workers, which normally equates to the number of the logical processor
# cores.
promise.managed.service.capacity=-1