| org.araneaframework.framework.core.BaseFilterService org.araneaframework.http.filter.StandardThreadCloningFilterService
StandardThreadCloningFilterService | public class StandardThreadCloningFilterService extends BaseFilterService implements ThreadCloningContext(Code) | | Filter that clones session threads upon requests and redirects request to cloned session thread. Should
always be configured as the first thread-level filter.
author: Taimo Peelo (taimo@araneaframework.org) |
StandardThreadCloningFilterService | public StandardThreadCloningFilterService()(Code) | | |
StandardThreadCloningFilterService | protected StandardThreadCloningFilterService(Service childService, boolean freshChildren)(Code) | | |
acquireThreadSnapshot | public byte[] acquireThreadSnapshot()(Code) | | |
setChildService | public void setChildService(Service childService)(Code) | | |
setTimeToLive | public void setTimeToLive(Long timeToLive)(Code) | | Sets the time of inactivity after which cloned service may be killed by thread router.
Parameters: timeToLive - allowed inactivity time, in milliseconds |
startClonedThread | public String startClonedThread(RelocatableService clone)(Code) | | Wraps the cloned service in a new StandardThreadCloningFilterService, attaches it to
ThreadContext .
- created service should not be decorated relocatable again, because
clone is relocatable already
- new StandardThreadCloningFilterService's childService may not be reinited!
This method is public and part of
ThreadCloningContext interface since Aranea 1.1.
thread id assigned to wrapped service |
takeSnapshot | protected byte[] takeSnapshot(RelocatableService service)(Code) | | |
Fields inherited from org.araneaframework.framework.core.BaseFilterService | protected Service childService(Code)(Java Doc)
|
|
|