![JAR search and dependency download from the Maven repository](/logo.png)
com.symphony.bdk.bot.sdk.notification.OrderedNotificationInterceptor Maven / Gradle / Ivy
package com.symphony.bdk.bot.sdk.notification;
import lombok.Setter;
/**
* Extends {@link NotificationInterceptor} to allow specifying the order in {@link InterceptorChain}
* in which the notification interceptor should be invoked.
*
* @author Marcus Secato
*/
@Setter
public abstract class OrderedNotificationInterceptor extends NotificationInterceptor {
private InterceptorChain interceptorChain;
private void register() {
init();
interceptorChain.register(getOrder(), this);
}
/**
* Specify the notification interceptor order in {@link InterceptorChain}
*
* @return the interceptor order in chain
*/
protected abstract int getOrder();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy