paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

every run generates unwanted lock files

Open evnix opened this issue 5 years ago • 3 comments

  • [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?

screenshot 2019-03-07 at 19 33 12

Thanks

evnix avatar Mar 07 '19 19:03 evnix

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.

icraggs avatar Apr 17 '19 20:04 icraggs

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?

leonmax avatar May 20 '21 04:05 leonmax