Package org.lionsoul.ip2region.service
Class SearcherPool
java.lang.Object
org.lionsoul.ip2region.service.SearcherPool
ip2region searcher pool manager to provider Concurrency search support.
- Author:
- Leoninvalid input: '<'chenxin619315@gmail.com> Date 2025/11/21
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSearcherPool(Config config) protectedSearcherPool(Config config, boolean fair) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(long timeoutMillis) static final SearcherPoolstatic final SearcherPoolintprotected SearcherPoolinit()voidreturnSearcher(Searcher searcher)
-
Field Details
-
config
-
-
Constructor Details
-
SearcherPool
- Throws:
IOException
-
SearcherPool
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
init
- Throws:
IOException
-
getLoanCount
public int getLoanCount() -
borrowSearcher
- Throws:
InterruptedException
-
returnSearcher
-
close
- Throws:
InterruptedException
-
close
- Throws:
InterruptedException
-