recreate the EventBus on restart to avoid classloader leaks

This commit is contained in:
Sebastian Sdorra
2019-06-05 16:10:15 +02:00
parent 73dc0d0544
commit 2b64a49e11
3 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
package sonia.scm.event;
/**
* This event forces the {@link ScmEventBus} to recreate the underlying implementation and to clear all its caches.
* Note: After this event is fired, every subscription is removed from the event bus.
*/
public final class RecreateEventBusEvent {}