Class CheckForUpdatesFilter
java.lang.Object
org.apache.tapestry5.internal.services.CheckForUpdatesFilter
- All Implemented Interfaces:
RequestFilter
Implements a barrier that periodically asks the
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 Summary
ConstructorsConstructorDescriptionCheckForUpdatesFilter(UpdateListenerHub updateListenerHub, long checkInterval, long updateTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleanservice(Request request, Response response, RequestHandler handler) Returns true if the request has been handled, false otherwise.
-
Constructor Details
-
CheckForUpdatesFilter
public CheckForUpdatesFilter(UpdateListenerHub updateListenerHub, @Symbol("tapestry.file-check-interval") @IntermediateType(TimeInterval.class) long checkInterval, @Symbol("tapestry.file-check-update-timeout") @IntermediateType(TimeInterval.class) long updateTimeout) - Parameters:
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.
-
-
Method Details
-
service
public boolean service(Request request, Response response, RequestHandler handler) throws IOException Description copied from interface:RequestFilterReturns true if the request has been handled, false otherwise.- Specified by:
servicein interfaceRequestFilter- Throws:
IOException
-