Comments (3)
I have read the code with this in mind and could not find anything that wasn't thread safe from the Parser class. It uses java.util.regex.Pattern, which is thread safe and does not expose the Matchers outside of method scope.
from uap-java.
It should be safe yes.
I've been using it in a thread-safe manner for a while.
There is this outstanding issue which needs to be addressed though.
Just create the Parser instance on app startup then pass the reference around.
You can have multiple threads invoking the parser.parse()
method
or if you're using a dependency injection framework, you can bind an instance of the Parser in Singleton scope
from uap-java.
Gonna close this issue since itβs been resolved. Thanks @anttibrax
from uap-java.
Related Issues (20)
- Jackson deserialization HOT 1
- Release patch for ReDos vulnerability (CVE-2018-20164) HOT 2
- Parser constructor shouldn't throw IOException HOT 1
- CachingParser is not thread safe HOT 2
- Parsing error
- [Request] Make it possible to use uap-java as an OSGI bundle
- can parse postman user-agent
- Building jar doesn't work HOT 1
- maven release HOT 1
- Hi, Benjamin HOT 1
- Why not deploy to maven central? HOT 1
- Third party library or framework integration plan HOT 5
- Please release to include latest changes to UAP-Core HOT 5
- IOException not imported by CacheParser HOT 5
- Update uap-core to 0.13.0 HOT 1
- SnakeYAML requires the java.desktop module HOT 1
- parse error HOT 2
- UserAgent Parser does not support patchMinor
- CVE-2022-25857 snakeyaml: Denial of Service due to missing nested depth limitation for collections HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uap-java.