Last active
August 29, 2015 14:25
-
-
Save wagnerluis1982/7dec47f9a894fa49e5c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface InterceptHandler { | |
InterceptEnum beforePublish(ProtocolEvent evt, InterceptContinue continuation); | |
InterceptEnum beforeSubscribe(ProtocolEvent evt, InterceptContinue continuation); | |
InterceptEnum beforeConnect(ProtocolEvent evt, InterceptContinue continuation); | |
void onConnect(ConnectMessage msg); | |
void onPublish(PublishMessage msg); | |
void onSubscribe(SubscribeMessage msg); | |
void onUnsubscribe(SubscribeMessage msg); | |
} | |
public enum InterceptEnum { | |
CONTINUE, | |
BREAK, | |
} | |
public interface InterceptContinue { | |
void doContinue(ProtocolEvent evt); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment