Skip to content

dushmis/commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaCommon

Java Stuff

Annotations

annotaions like NotNull, DBField.java, Pattern

Concurrent ObjectLock

ObjectLock lock on specific object so other users can't use that object while locked object is being accessed by any process, any other object will get processed but same object will have to wait, or will timeout ( tryLock )

Extractor

Extractor,ExtractorService, Method

Util

[Util] with methods like #measureTime that takes a lambda using Consumer, Supplier interfaces Util.use borrow design pattern

final Optional<Map<?, ?>> use = Util.use(ConnectionPool.get(), closeable -> {
  //use closeable without worry
  return new HashMap<>();
});

Releases

No releases published

Packages

No packages published