Class AjaxChannel

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

    public class AjaxChannel
    extends java.lang.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_NAME

        public static final java.lang.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​(java.lang.String name)
        Construct.
        Parameters:
        name - the name of the channel
      • AjaxChannel

        public AjaxChannel​(java.lang.String name,
                           AjaxChannel.Type type)
        Construct.
        Parameters:
        name - the name of the channel
        type - the behavior type of this channel
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object