Javadoc
Base class to help implement SyncZuulFilter. Note that the class BaseSyncFilter does exist but it derives from
BaseFilter which in turn creates a new instance of CachedDynamicBooleanProperty for "filterDisabled" every time you
create a new instance of the ZuulFilter. Normally it is not too much of a concern as the instances of ZuulFilters
are "effectively" singleton and are cached by ZuulFilterLoader. However, if you ever have a need for instantiating a
new ZuulFilter instance per request - aka EdgeProxyEndpoint or Inbound/Outbound PassportStampingFilter creating new
instances of CachedDynamicBooleanProperty per instance of ZuulFilter will quickly kill your server's performance in
two ways -
a) Instances of CachedDynamicBooleanProperty are *very* heavy CPU wise to create due to extensive hookups machinery
in their constructor
b) They leak memory as they add themselves to some ConcurrentHashMap and are never garbage collected.
TL;DR use this as a base class for your ZuulFilter if you intend to create new instances of ZuulFilter
Created by saroskar on 6/8/17.