Slowdown proxy

Added code to allow a new spy.properties parameter called "fixedDelay" that blocks the thread for a fixed amount of time to simulate a database slowdown.
Good feedback, will do...

I was confused about what the autoreload meant... originally I thought it
meant "autoreloadable".

Goot point on delay, I debated the test thinking about how it might have
false negatives if the VM was slow, but that's better than what the current
test is (which actually doesn't validate it slowed down at all :s ).


Also, I'm in the process of moving it to a module.

Thanks for the feedback!


On Fri, Nov 14, 2014 at 1:20 PM, Peter Butkovic <notifications@github.com>
wrote:

> In src/main/java/com/p6spy/engine/spy/option/SpyDotPropertiesReloader.java:
>
> > @@ -94,6 +94,9 @@ public void optionChanged(String key, Object oldValue, Object newValue) {
> >        reschedule(Boolean.valueOf(newValue.toString()), P6SpyOptions.getActiveInstance().getReloadPropertiesInterval());
> >      } else if (key.equals(P6SpyOptions.RELOADPROPERTIESINTERVAL)) {
> >        reschedule(P6SpyOptions.getActiveInstance().getReloadProperties(), (Long) newValue);
> > +    } else if (key.equals(P6SpyOptions.FIXED_DELAY)) {
>
> change in this file should be referted, as delay has nothing to do with
> autoreload of the spy.properties
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/p6spy/p6spy/pull/270/files#r20379684>.
>