broker/InterceptHandler: code formatter used

This commit is contained in:
Andreas Mager
2017-02-01 17:13:35 +01:00
parent e81f8ff96c
commit c48534b0ba
@@ -13,6 +13,7 @@
* *
* You may elect to redistribute this code under either of these licenses. * You may elect to redistribute this code under either of these licenses.
*/ */
package io.moquette.interception; package io.moquette.interception;
import io.moquette.interception.messages.*; import io.moquette.interception.messages.*;
@@ -24,31 +25,32 @@ import io.netty.handler.codec.mqtt.MqttMessage;
* <p> * <p>
* The events can act only as observers. * The events can act only as observers.
* <p> * <p>
* Almost every method receives a subclass of {@link MqttMessage}, except * Almost every method receives a subclass of {@link MqttMessage}, except <code>onDisconnect</code>
* <code>onDisconnect</code> that receives the client id string and * that receives the client id string and <code>onSubscribe</code> and <code>onUnsubscribe</code>
* <code>onSubscribe</code> and <code>onUnsubscribe</code> that receive a * that receive a {@link Subscription} object.
* {@link Subscription} object.
* *
* @author Wagner Macedo * @author Wagner Macedo
*/ */
public interface InterceptHandler { public interface InterceptHandler {
public static final Class<?> ALL_MESSAGE_TYPES[] = { InterceptConnectMessage.class, public static final Class<?> ALL_MESSAGE_TYPES[] = {InterceptConnectMessage.class, InterceptDisconnectMessage.class,
InterceptDisconnectMessage.class, InterceptConnectionLostMessage.class, InterceptPublishMessage.class, InterceptConnectionLostMessage.class, InterceptPublishMessage.class, InterceptSubscribeMessage.class,
InterceptSubscribeMessage.class, InterceptUnsubscribeMessage.class, InterceptAcknowledgedMessage.class }; InterceptUnsubscribeMessage.class, InterceptAcknowledgedMessage.class};
/** /**
* Returns the identifier of this intercept handler. * Returns the identifier of this intercept handler.
* @return *
*/ * @return
String getID(); */
String getID();
/** /**
* Returns the InterceptMessage subtypes that this handler can process. If the result is null or equal to ALL_MESSAGE_TYPES, * Returns the InterceptMessage subtypes that this handler can process. If the result is null or
* all the message types will be processed. * equal to ALL_MESSAGE_TYPES, all the message types will be processed.
* @return *
*/ * @return
Class<?>[] getInterceptedMessageTypes(); */
Class<?>[] getInterceptedMessageTypes();
void onConnect(InterceptConnectMessage msg); void onConnect(InterceptConnectMessage msg);