Skip to content

Instantly share code, notes, and snippets.

@wagnerluis1982
Last active August 29, 2015 14:25
Show Gist options
  • Save wagnerluis1982/7dec47f9a894fa49e5c7 to your computer and use it in GitHub Desktop.
Save wagnerluis1982/7dec47f9a894fa49e5c7 to your computer and use it in GitHub Desktop.
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