Package | Description |
---|---|
org.apache.wicket |
The core Wicket package.
|
org.apache.wicket.ajax | |
org.apache.wicket.ajax.attributes | |
org.apache.wicket.ajax.form | |
org.apache.wicket.core.util.watch | |
org.apache.wicket.markup.html.link |
Link components.
|
org.apache.wicket.page | |
org.apache.wicket.request.handler.resource | |
org.apache.wicket.request.http | |
org.apache.wicket.request.resource | |
org.apache.wicket.settings | |
org.apache.wicket.util.string |
String utilities.
|
org.apache.wicket.util.tester |
A package with utility classes to ease unit testing of Wicket applications without the need for
a servlet container.
|
org.apache.wicket.util.thread |
Threading utilities.
|
org.apache.wicket.util.time |
Utilities for working with
Time (s). |
org.apache.wicket.util.value |
This package provides casting utilities.
|
org.apache.wicket.util.watch |
This package provides modification watchers.
|
Modifier and Type | Method and Description |
---|---|
protected PageAccessSynchronizer |
Session.newPageAccessSynchronizer(Duration timeout)
Factory method for PageAccessSynchronizer instances
|
Modifier and Type | Method and Description |
---|---|
Duration |
AbstractAjaxTimerBehavior.getUpdateInterval()
Returns the update interval
|
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractAjaxTimerBehavior.getJsTimeoutCall(Duration updateInterval) |
protected void |
AbstractAjaxTimerBehavior.setUpdateInterval(Duration updateInterval)
Sets the update interval duration.
|
Constructor and Description |
---|
AbstractAjaxTimerBehavior(Duration updateInterval)
Construct.
|
AjaxClientInfoBehavior(Duration duration)
Constructor.
|
AjaxSelfUpdatingTimerBehavior(Duration updateInterval)
Construct.
|
Modifier and Type | Method and Description |
---|---|
Duration |
ThrottlingSettings.getDelay() |
Duration |
AjaxRequestAttributes.getRequestTimeout()
Returns the timeout in milliseconds for the AJAX request.
|
Modifier and Type | Method and Description |
---|---|
void |
ThrottlingSettings.setDelay(Duration delay) |
AjaxRequestAttributes |
AjaxRequestAttributes.setRequestTimeout(Duration requestTimeout)
Sets the timeout in milliseconds for the AJAX request.
|
Constructor and Description |
---|
ThrottlingSettings(Duration delay)
Construct without id (will default to the component's markup ID) and postponeTimerOnUpdate
set to false.
|
ThrottlingSettings(Duration delay,
boolean postponeTimerOnUpdate)
Construct without id (will default to the component's markup ID).
|
ThrottlingSettings(String id,
Duration delay)
Construct.
|
ThrottlingSettings(String id,
Duration delay,
boolean postponeTimerOnUpdate)
Construct.
|
Constructor and Description |
---|
AjaxFormValidatingBehavior(String event,
Duration throttleDelay)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
Nio2ModificationWatcher.start(Duration pollFrequency) |
Constructor and Description |
---|
Nio2ModificationWatcher(Application application,
Duration pollFrequency)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DownloadLink |
DownloadLink.setCacheDuration(Duration duration)
Sets the duration for which the file resource should be cached by the client.
|
Modifier and Type | Method and Description |
---|---|
Duration |
CouldNotLockPageException.getTimeout() |
Duration |
PageAccessSynchronizer.getTimeout(int pageId) |
Constructor and Description |
---|
CouldNotLockPageException(int page,
String threadName,
Duration timeout)
Construct.
|
PageAccessSynchronizer(Duration timeout)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Duration |
ResourceStreamRequestHandler.getCacheDuration() |
Modifier and Type | Method and Description |
---|---|
ResourceStreamRequestHandler |
ResourceStreamRequestHandler.setCacheDuration(Duration cacheDuration) |
Modifier and Type | Field and Description |
---|---|
static Duration |
WebResponse.MAX_CACHE_DURATION
Recommended value for cache duration
|
Modifier and Type | Method and Description |
---|---|
void |
WebResponse.enableCaching(Duration duration,
WebResponse.CacheScope scope)
Make this response cacheable
when trying to enable caching for web pages check this out: WICKET-4357
|
Modifier and Type | Method and Description |
---|---|
Duration |
ResourceStreamResource.getCacheDuration() |
Duration |
AbstractResource.ResourceResponse.getCacheDuration()
Returns how long this resource may be cached for.
|
Modifier and Type | Method and Description |
---|---|
ResourceStreamResource |
ResourceStreamResource.setCacheDuration(Duration cacheDuration) |
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setCacheDuration(Duration duration)
Controls how long this response may be cached.
|
Modifier and Type | Method and Description |
---|---|
Duration |
ResourceSettings.getDefaultCacheDuration()
Get the the default cache duration for resources.
|
Duration |
ResourceSettings.getResourcePollFrequency() |
Duration |
RequestCycleSettings.getTimeout()
Gets the time that a request will by default be waiting for the previous request to be
handled before giving up.
|
Modifier and Type | Method and Description |
---|---|
ResourceSettings |
ResourceSettings.setDefaultCacheDuration(Duration duration)
Set the the default cache duration for resources.
|
ResourceSettings |
ResourceSettings.setResourcePollFrequency(Duration resourcePollFrequency)
Sets the resource polling frequency.
|
RequestCycleSettings |
RequestCycleSettings.setTimeout(Duration timeout)
Sets the time that a request will by default be waiting for the previous request to be
handled before giving up.
|
Modifier and Type | Method and Description |
---|---|
Duration |
StringValue.toDuration()
Convert this text to a Duration instance.
|
Duration |
StringValue.toDuration(Duration defaultValue)
Convert to duration, returning default value if text is inconvertible.
|
Duration |
StringValue.toOptionalDuration()
Convert to object types, returning null if text is null or empty.
|
Modifier and Type | Method and Description |
---|---|
Duration |
StringValue.toDuration(Duration defaultValue)
Convert to duration, returning default value if text is inconvertible.
|
Modifier and Type | Method and Description |
---|---|
protected Duration |
BaseWicketTester.getResourcePollFrequency()
By default Modification Watcher is disabled by default for the tests.
|
Modifier and Type | Method and Description |
---|---|
void |
Task.run(Duration frequency,
ICode code)
Runs this
Task at the given frequency. |
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.MAXIMUM
Constant for maximum duration.
|
static Duration |
Duration.NONE
Constant for no duration.
|
static Duration |
Duration.ONE_DAY
Constant for one day.
|
static Duration |
Duration.ONE_HOUR
Constant for one hour.
|
static Duration |
Duration.ONE_MINUTE
Constant for on minute.
|
static Duration |
Duration.ONE_SECOND
Constant for one second.
|
static Duration |
Duration.ONE_WEEK
Constant for one week.
|
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.add(Duration duration)
Adds a given
Duration to this Duration . |
static Duration |
Duration.benchmark(ICode code,
org.slf4j.Logger log)
Benchmark the given command.
|
static Duration |
Duration.benchmark(Runnable code)
Benchmark the given command.
|
static Duration |
Duration.days(double days)
Retrieves the
Duration based on days. |
static Duration |
Duration.days(int days)
Retrieves the
Duration based on days. |
static Duration |
Duration.elapsed(Time start)
Calculates the amount of time elapsed since start time.
|
Duration |
Time.elapsedSince()
Calculates the amount of time that has elapsed since this
Time value. |
Duration |
Time.fromNow()
Retrieves the
Duration from now to this Time value. |
Duration |
TimeFrame.getDuration()
Retrieves the
Duration of this TimeFrame . |
static Duration |
Duration.hours(double hours)
Retrieves the
Duration based on hours. |
static Duration |
Duration.hours(int hours)
Retrieves the
Duration based on hours. |
static Duration |
Duration.milliseconds(double milliseconds)
Retrieves the
Duration based on milliseconds. |
static Duration |
Duration.milliseconds(long milliseconds)
Retrieves the
Duration based on milliseconds. |
static Duration |
Duration.minutes(double minutes)
Retrieves the
Duration based on minutes. |
static Duration |
Duration.minutes(int minutes)
Retrieves the
Duration based on minutes. |
static Duration |
Duration.seconds(double seconds)
Retrieves the
Duration based on seconds. |
static Duration |
Duration.seconds(int seconds)
Retrieves the
Duration based on seconds. |
Duration |
Duration.subtract(Duration that)
Subtracts a given
Duration from this Duration . |
Duration |
Time.subtract(Time that)
Subtract time from this and returns the difference as a
Duration object. |
static Duration |
Duration.valueOf(long time)
Retrieves the given
long as a Duration . |
static Duration |
Duration.valueOf(String string)
Converts the given
String to a new Duration object. |
static Duration |
Duration.valueOf(String string,
Locale locale)
Converts the given
String to a new Duration object. |
Modifier and Type | Method and Description |
---|---|
Time |
Time.add(Duration duration)
Adds the given
Duration to this Time object, moving the time into
the future. |
Duration |
Duration.add(Duration duration)
Adds a given
Duration to this Duration . |
Time |
Time.subtract(Duration duration)
Subtracts the given
Duration from this Time object, moving the time
into the past. |
Duration |
Duration.subtract(Duration that)
Subtracts a given
Duration from this Duration . |
static TimeOfDay |
TimeOfDay.valueOf(Duration duration)
Converts a
Duration instance to a TimeOfDay instance. |
static TimeFrame |
TimeFrame.valueOf(Time start,
Duration duration)
Creates a
TimeFrame for a start Time and Duration . |
Modifier and Type | Method and Description |
---|---|
Duration |
ValueMap.getAsDuration(String key) |
Duration |
IValueMap.getAsDuration(String key)
Retrieves a
Duration value by key. |
Duration |
CopyOnWriteValueMap.getAsDuration(String key) |
Duration |
ValueMap.getAsDuration(String key,
Duration defaultValue) |
Duration |
IValueMap.getAsDuration(String key,
Duration defaultValue)
Retrieves a
Duration value by key. |
Duration |
CopyOnWriteValueMap.getAsDuration(String key,
Duration defaultValue) |
Duration |
ValueMap.getDuration(String key) |
Duration |
IValueMap.getDuration(String key)
Retrieves a
Duration by key. |
Duration |
CopyOnWriteValueMap.getDuration(String key) |
Modifier and Type | Method and Description |
---|---|
Duration |
ValueMap.getAsDuration(String key,
Duration defaultValue) |
Duration |
IValueMap.getAsDuration(String key,
Duration defaultValue)
Retrieves a
Duration value by key. |
Duration |
CopyOnWriteValueMap.getAsDuration(String key,
Duration defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
ModificationWatcher.start(Duration pollFrequency) |
void |
IModificationWatcher.start(Duration pollFrequency)
Starts watching at a given
Duration polling rate. |
Constructor and Description |
---|
ModificationWatcher(Duration pollFrequency)
Constructor that accepts a
Duration argument representing the poll frequency. |
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.