Skip to content

Repeating Task In Java

I need to repeat a task every 5 seconds in java, I’m creating a minecraft bukkit / spigot Plugin, so doing it with Java or using the bukkit api would both work great. Code: Thanks for the help! Answer You can do what is called scheduling a repeating task, this example was pulled from the Bukkit forums. …

Maven dependencies are failing with a 501 error

Recently Maven build jobs running in Jenkins are failing with the below exception saying that they couldn’t pull dependencies from Maven Central and should use HTTPS. I’m not sure how to change the requests from HTTP to HTTPS. Could someone guide me on this matter? [ERROR] Unresolveable build exte…

Ignite heap not release, this is a memery leak?

I have a 20 minute pressure test during which the free JVM heap size drops from 97% to 3%. Even if I wait 5 hours, the amount of free space does not change. If I try to have a test again, the GC has too much work and causes a long JVM pause. I use 2.7 Ignite, I do not

How to format a date to insert in Elasticsearch

I’m coding a Java app to insert data in Elasticsearch 7.5.1. When creating the index the property was set like this: Now when inserting the date I’m getting this error: I’m currently doing it like this: And checking a working index I can see it’s formatted like this, example: 2019-10-0…