commonjava / weft Goto Github PK
View Code? Open in Web Editor NEWWeft CDI-Thread/Executor Provider
Weft CDI-Thread/Executor Provider
This line 367 is an area of concern.
It's generally unwise to use parallel stream. Any Callable that blocks will cause the shared FJ pool to slow down.
When running Weft to create a thread pool I am seeing the DefaultWeftConf object always creates a fixed thread pool. Even when the default configured is zero.
For the Executors.newCachedThreadPool method to be called the threadCount must be zero.
But the DefaultWeftConf is ignoring ExecutorConfig.threads attribute value less than zero and returning the hardware derrived value.
Looks like the master branch is not compiling. The compiler is missing the package javax.annotation
$ git branch;mvn compile
* master
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.commonjava.cdi.util:weft >--------------------
[INFO] Building Weft CDI-Thread/Executor Provider 1.16-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-versions) @ weft ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (prepare-ut) @ weft ---
[INFO] argLine set to -javaagent:/home/whitingjr/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/thebounty/work/redhat/java/weft/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ weft ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ weft ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 22 source files to /thebounty/work/redhat/java/weft/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/SingleThreadedExecutorService.java: Some input files use unchecked or unsafe operations.
[WARNING] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/SingleThreadedExecutorService.java: Recompile with -Xlint:unchecked for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/WeftPoolBoy.java:[25,24] package javax.annotation does not exist
[ERROR] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/WeftPoolBoy.java:[26,24] package javax.annotation does not exist
[ERROR] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/WeftPoolBoy.java:[74,6] cannot find symbol
symbol: class PostConstruct
location: class org.commonjava.cdi.util.weft.WeftPoolBoy
[ERROR] /thebounty/work/redhat/java/weft/src/main/java/org/commonjava/cdi/util/weft/WeftPoolBoy.java:[98,6] cannot find symbol
symbol: class PreDestroy
location: class org.commonjava.cdi.util.weft.WeftPoolBoy
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.