notify when client connection lost;

implement onConnectionLost() method in AbstractInterceptHandler.java;
This commit is contained in:
bcw
2016-10-24 11:37:10 +08:00
parent 03c0097641
commit 3e89bc5d2c
2 changed files with 8 additions and 0 deletions
@@ -30,6 +30,9 @@ public abstract class AbstractInterceptHandler implements InterceptHandler {
@Override
public void onDisconnect(InterceptDisconnectMessage msg) {}
@Override
public void onConnectionLost(InterceptConnectionLostMessage msg) {}
@Override
public void onPublish(InterceptPublishMessage msg) {}
@@ -51,6 +51,11 @@ public class BrokerInterceptorTest {
n.set(50);
}
@Override
public void onConnectionLost(InterceptConnectionLostMessage msg) {
n.set(30);
}
@Override
public void onPublish(InterceptPublishMessage msg) {
n.set(60);