Package org.apache.wicket.ajax
Class AjaxChannel
- java.lang.Object
-
- org.apache.wicket.ajax.AjaxChannel
-
- All Implemented Interfaces:
Serializable
,IClusterable
public class AjaxChannel extends Object implements IClusterable
A Channel used to define how Ajax requests are processed at the client side. Channels are either:- queueing - Ajax requests are kept in a Queue at the client side and processed one at a time. Default.
- dropping - only the last Ajax request is processed, all previously scheduled requests are discarded
- active - discards any Ajax requests if there is a running Ajax request on the same channel
- Author:
- Martin Dilger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AjaxChannel.Type
The type of anAjaxChannel
-
Field Summary
Fields Modifier and Type Field Description static AjaxChannel
DEFAULT
The default channel for all Ajax callsstatic String
DEFAULT_NAME
The name of the default channelstatic AjaxChannel.Type
DEFAULT_TYPE
The type of the default channel
-
Constructor Summary
Constructors Constructor Description AjaxChannel(String name)
Construct.AjaxChannel(String name, AjaxChannel.Type type)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
AjaxChannel.Type
getType()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
DEFAULT_NAME
public static final String DEFAULT_NAME
The name of the default channel- See Also:
- Constant Field Values
-
DEFAULT_TYPE
public static final AjaxChannel.Type DEFAULT_TYPE
The type of the default channel
-
DEFAULT
public static final AjaxChannel DEFAULT
The default channel for all Ajax calls
-
-
Constructor Detail
-
AjaxChannel
public AjaxChannel(String name)
Construct.- Parameters:
name
- the name of the channel
-
AjaxChannel
public AjaxChannel(String name, AjaxChannel.Type type)
Construct.- Parameters:
name
- the name of the channeltype
- the behavior type of this channel
-
-
Method Detail
-
getType
public AjaxChannel.Type getType()
- Returns:
- the type of this channel
- See Also:
AjaxChannel.Type
-
-