Class ShutdownInterceptor

java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.shutdown.ShutdownInterceptor
All Implemented Interfaces:
Interceptor

public class ShutdownInterceptor extends AbstractInterceptor
Description
Shutdown interceptor.
Explanation

Adds the ability to shutdown main router thread via an HTTP request. Don't forget to setup security for this interceptor.

Has undefined behavior when Membrane is not started from command line (=via the RouterCLI class, which service-proxy.bat/service-proxy.sh do use).

Only actually terminates the running JVM, when used in the first <router> bean (which implicitly stands for <router id="router">) called "router".

Topic
4. Interceptors/Features