From 3ea9770d0d43fbe45449ac4531ec4b0a374d98ea Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 8 Nov 2018 21:16:19 +0300 Subject: Drop legacy notification server --- .../service/JuickServerReconnectManager.java | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java (limited to 'juick-notifications/src/main/java/com/juick/components/service') 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 { - 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(); - } -} -- cgit v1.2.3