public abstract class ServerSideSlowDownInterceptor extends AbstractServerSideRequestInterceptor
Constructor and Description |
---|
ServerSideSlowDownInterceptor() |
Modifier and Type | Method and Description |
---|---|
InterceptorResponse |
beforeServantCall(ServerSideCallContext context,
InterceptionContext iContext)
Called before any real processing happens on the server side.
|
protected abstract long |
getSlowDownTime()
Returns the amount of time in milliseconds the call should be slowed down.
|
protected abstract boolean |
slowDown(ServerSideCallContext context)
Returns true if current call should be slowed down.
|
afterServantCall
public InterceptorResponse beforeServantCall(ServerSideCallContext context, InterceptionContext iContext)
ServerSideRequestInterceptor
beforeServantCall
in interface ServerSideRequestInterceptor
beforeServantCall
in class AbstractServerSideRequestInterceptor
protected abstract boolean slowDown(ServerSideCallContext context)
context
- protected abstract long getSlowDownTime()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.