Class ClusterNotificationInterceptor

java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.balancer.ClusterNotificationInterceptor
All Implemented Interfaces:
Interceptor

public class ClusterNotificationInterceptor extends AbstractInterceptor
Description
Receives control messages to dynamically modify the configuration of a LoadBalancingInterceptor.
Explanation
See also examples/loadbalancer-client-2 in the Membrane API Gateway distribution.
Topic
7. Clustering and Loadbalancing
  • Constructor Details

    • ClusterNotificationInterceptor

      public ClusterNotificationInterceptor()
  • Method Details

    • handleRequest

      public Outcome handleRequest(Exchange exc) throws Exception
      Specified by:
      handleRequest in interface Interceptor
      Overrides:
      handleRequest in class AbstractInterceptor
      Throws:
      Exception
    • isValidateSignature

      public boolean isValidateSignature()
    • setValidateSignature

      public void setValidateSignature(boolean validateSignature)
      Description
      Set Push Interface to encrypted mode.
    • getTimeout

      public int getTimeout()
    • setTimeout

      public void setTimeout(int timeout)
      Description
      Timestamp invalidation period. (0=unlimited)
      Example
      5000
    • getKeyHex

      public String getKeyHex()
    • setKeyHex

      public void setKeyHex(String keyHex)
      Description
      Key used by encryption as hex string
      Example
      6f488a642b740fb70c5250987a284dc0
    • getShortDescription

      public String getShortDescription()
      Specified by:
      getShortDescription in interface Interceptor
      Overrides:
      getShortDescription in class AbstractInterceptor