All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.symphony.bdk.bot.sdk.notification.OrderedNotificationInterceptor Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
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