public class ThrottlingSettings extends Object implements IClusterable
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.
|
Modifier and Type | Method and Description |
---|---|
Duration |
getDelay() |
String |
getId()
This id is used by the client-side throttling code to keep track of the various event
throttles.
|
boolean |
getPostponeTimerOnUpdate()
If it is set to true, then the timer is reset each time the throttle function gets called.
|
void |
setDelay(Duration delay) |
void |
setPostponeTimerOnUpdate(boolean postponeTimerOnUpdate) |
public ThrottlingSettings(Duration delay)
delay
- throttle delaypublic ThrottlingSettings(Duration delay, boolean postponeTimerOnUpdate)
delay
- throttle delaypostponeTimerOnUpdate
- postpone timerpublic ThrottlingSettings(String id, Duration delay)
id
- throttle iddelay
- throttle delaypublic Duration getDelay()
public void setDelay(Duration delay)
public String getId()
Component.getMarkupId()
). To unite several different events with one throttle,
give them the same ID. If this is null, it will (on the client only) default to the
component's markupId.public boolean getPostponeTimerOnUpdate()
public void setPostponeTimerOnUpdate(boolean postponeTimerOnUpdate)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.