Class ClusterNotificationInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.balancer.ClusterNotificationInterceptor
- All Implemented Interfaces:
Interceptor
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninthandleRequest(Exchange exc) booleanvoidvoidsetTimeout(int timeout) voidsetValidateSignature(boolean validateSignature) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, handleResponse, init, init, setDisplayName, setFlow
-
Constructor Details
-
ClusterNotificationInterceptor
public ClusterNotificationInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- 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
-
setKeyHex
- Description
- Key used by encryption as hex string
- Example
- 6f488a642b740fb70c5250987a284dc0
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-