public class CheckForUpdatesFilter extends Object implements RequestFilter
UpdateListenerHub
to check for
updates to files. The UpdateListenerHub is invoked from a write method, meaning that when it is called, all other
threads will be blocked.Constructor and Description |
---|
CheckForUpdatesFilter(UpdateListenerHub updateListenerHub,
long checkInterval,
long updateTimeout) |
Modifier and Type | Method and Description |
---|---|
boolean |
service(Request request,
Response response,
RequestHandler handler)
Returns true if the request has been handled, false otherwise.
|
public CheckForUpdatesFilter(UpdateListenerHub updateListenerHub, @Symbol(value="tapestry.file-check-interval")@IntermediateType(value=TimeInterval.class) long checkInterval, @Symbol(value="tapestry.file-check-update-timeout")@IntermediateType(value=TimeInterval.class) long updateTimeout)
updateListenerHub
- invoked, at intervals, to spur the process of detecting changescheckInterval
- interval, in milliseconds, between checksupdateTimeout
- time, in milliseconds, to wait to obtain update lock.public boolean service(Request request, Response response, RequestHandler handler) throws IOException
RequestFilter
service
in interface RequestFilter
IOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.