org.wicketstuff.push
Interface IPushTarget

All Superinterfaces:
IChannelTarget
All Known Implementing Classes:
TimerChannelBehavior.TimerPushTarget

public interface IPushTarget
extends IChannelTarget

A target used to push events to a client.

Instance of this interface are usually obtained by an IPushService.

This interface extends IChannelTarget, and thus provides methods familiar to AjaxRequestTarget users.

The specificities of IPushTarget is that you have to call trigger() excplictly when you want the events to actually be send to the client. Until the trigger() method is called, events are simply queued.

The isConnected() method allows to check if the target is still connected to the client. It is up to the user to call this method before calling any method asking for clients updates.

Author:
Xavier Hanin

Method Summary
 boolean isConnected()
           
 void trigger()
           
 
Methods inherited from interface org.wicketstuff.push.IChannelTarget
addComponent, addComponent, appendJavascript, focusComponent, prependJavascript
 

Method Detail

trigger

void trigger()

isConnected

boolean isConnected()


Copyright © 2010. All Rights Reserved.