aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/service
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/service')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java b/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java
deleted file mode 100644
index b490c154..00000000
--- a/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.juick.components.service;
-
-import com.juick.service.component.DisconnectedEvent;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.context.ApplicationListener;
-import org.springframework.stereotype.Component;
-import org.springframework.web.socket.client.WebSocketConnectionManager;
-
-import javax.annotation.Nonnull;
-import javax.inject.Inject;
-
-@Component
-public class JuickServerReconnectManager implements ApplicationListener<DisconnectedEvent> {
- private static Logger logger = LoggerFactory.getLogger(JuickServerReconnectManager.class);
- @Inject
- private WebSocketConnectionManager webSocketConnectionManager;
- @Override
- public void onApplicationEvent(@Nonnull DisconnectedEvent event) {
- logger.info("retrying...");
- webSocketConnectionManager.stop();
- webSocketConnectionManager.start();
- }
-}