public class ThrottleInterceptor extends AbstractInterceptor
Interceptor.Flow
ELEMENT_NAME, id, name
router
Constructor and Description |
---|
ThrottleInterceptor() |
Modifier and Type | Method and Description |
---|---|
int |
getBusyDelay() |
long |
getDelay() |
String |
getHelpId() |
String |
getLongDescription() |
int |
getMaxThreads() |
String |
getShortDescription() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
protected void |
parseAttributes(XMLStreamReader token) |
void |
setBusyDelay(int busyDelay) |
void |
setDelay(long delay) |
void |
setMaxThreads(int maxThreads) |
protected void |
writeInterceptor(XMLStreamWriter out) |
getDisplayName, getElementName, getFlow, getId, setDisplayName, setFlow, setId, write
getRouter, setRouter
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRouter, setRouter
parse
public Outcome handleRequest(Exchange exc) throws Exception
handleRequest
in interface Interceptor
handleRequest
in class AbstractInterceptor
Exception
public Outcome handleResponse(Exchange exc) throws Exception
handleResponse
in interface Interceptor
handleResponse
in class AbstractInterceptor
Exception
public long getDelay()
public void setDelay(long delay)
public int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getBusyDelay()
public void setBusyDelay(int busyDelay)
protected void writeInterceptor(XMLStreamWriter out) throws XMLStreamException
writeInterceptor
in class AbstractInterceptor
XMLStreamException
protected void parseAttributes(XMLStreamReader token)
parseAttributes
in class AbstractInterceptor
public String getShortDescription()
getShortDescription
in interface Interceptor
getShortDescription
in class AbstractInterceptor
public String getLongDescription()
getLongDescription
in interface Interceptor
getLongDescription
in class AbstractInterceptor
public String getHelpId()
getHelpId
in interface Interceptor
getHelpId
in class AbstractInterceptor
Copyright © 2012. All Rights Reserved.