Comments (2)
The supplied implementations (like FileObjectQueue) should all be used from the same thread to avoid corruption. Now, it would be possible to make an implementation of ObjectQueue that is thread-safe using the various java concurrency apis. It should try to adhere to the same contracts, but this will be a bit tricky.
from tape.
Yep, like Pat said the classes are not thread safe. If you need concurrent access you'll either have to use a wrapper+synchronization or some kind of queue+processor (think: Handler on Android).
We will not be adding a thread-safe version in the library.
from tape.
Related Issues (20)
- Is it thread safe? HOT 3
- Android module for android specific logic HOT 2
- A question about the evolution of this repository HOT 1
- Read/Write Benchmarks HOT 1
- Application not responding after adding an entry to the queue HOT 2
- Batched remove() - Using remove() less frequently than peek() HOT 6
- Remove java.io.OutputStream and the like from API?
- BlockingQueue implementation and other interfaces HOT 5
- Wrap QueueFile around an existing File? HOT 6
- Support addAll(Collection<byte[]>) for better performance with small records HOT 2
- Windows non-sync writes HOT 1
- Fail to read queue.
- Leak of file descriptor when creating QueueFile from corrupted queue file. HOT 1
- Not compatible with Gradle 5.1.1 HOT 6
- Why so slow?
- QueueFileTest.testSaturatedFileExpansionMovesElements hanged HOT 3
- Issues while writing and reading from different daemons with flock
- Consider DequeFile HOT 1
- Fail to Remove from FileObjectQueue
- Time to mark as deprecated? HOT 6
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 tape.