Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.45 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.45 KB

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<>();
});