Skip to content

PhantomThief/simple-pool

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

simple-pool

Build Status Coverage Status Total alerts Language grade: Java Maven Central

A simple pool library for Java

  • support concurrency use for objects.
  • jdk1.8 only

Get Started

Pool<MyObject> pool = ConcurrencyAwarePool.<MyObject> builder()
                .destroy(MyObject::close)
                .maxSize(30)
                .minIdle(1)
                .evaluatePeriod(ofSeconds(2))
                .simpleThresholdStrategy(10, 0.8)
                .build(MyObject::new);

MyResult myResult = pool.supply(myObject-> myObject.doSomething());

About

A simple Java pool that supports customized ref counting.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages