aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-08 21:16:19 +0300
committerGravatar Vitaly Takmazov2018-11-08 21:16:19 +0300
commit3ea9770d0d43fbe45449ac4531ec4b0a374d98ea (patch)
treecf6ded98dd9c6b7bbe038711f1d8caacd99a8493 /juick-notifications/src/main/java/com/juick/components/service
parent31a4fc0bc7735a7ff670499deafd0364522df344 (diff)
Drop legacy notification server
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();
- }
-}