paho.mqtt.java
paho.mqtt.java copied to clipboard
every run generates unwanted lock files
- [x] Bug exists Release Version 1.2.0 ( Master Branch)
- [x] Bug exists in MQTTv3 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
- [x] Bug exists in MQTTv5 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
Every time I run a basic example, I get the following .lck files and after a few trials, my IDE is full of them, Can I at least somehow set them to a /tmp directory so that a restart will clear all of those and my IDE wouldn't index them?

Thanks
You can use a client constructor which takes a persistence implementation as a parameter. The default file persistence implementation takes a directory as a parameter.
If you don't need disk persistence, you can use the memory persistence implementation.
You can use a client constructor which takes a persistence implementation as a parameter. The default file persistence implementation takes a directory as a parameter.
If you don't need disk persistence, you can use the memory persistence implementation.
Hi @icraggs can you be more specific? where can I find the parameter to set to memory persistence?