|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.utils.DelayFilter
public class DelayFilter
Filter which pauses protocol chain processing for a certain time.
| Constructor Summary | |
|---|---|
DelayFilter(long readTimeoutMillis,
long writeTimeoutMillis)
|
|
| Method Summary | |
|---|---|
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will become available for reading. |
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should be written on channel. |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
|---|
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelayFilter(long readTimeoutMillis,
long writeTimeoutMillis)
| Method Detail |
|---|
public NextAction handleRead(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.
handleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public NextAction handleWrite(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.
handleWrite in interface FilterhandleWrite in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||