Class AjaxChannel

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.util.io.IClusterable

    public class AjaxChannel
    extends Object
    implements org.apache.wicket.util.io.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
    • Field Detail

      • 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 channel
        type - the behavior type of this channel