Example usage for org.apache.wicket.protocol.ws.api.message ConnectedMessage getApplication

List of usage examples for org.apache.wicket.protocol.ws.api.message ConnectedMessage getApplication

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.ws.api.message ConnectedMessage getApplication.

Prototype

public Application getApplication() 

Source Link

Usage

From source file:com.wicketinaction.charts.ChartUpdater.java

License:Apache License

public static void start(ConnectedMessage message) {
    Record[] data = generateData();//from  w  w w.  ja v a2  s.com

    // create an asynchronous task that will write the data to the client
    UpdateTask updateTask = new UpdateTask(message.getApplication(), message.getSessionId(), message.getKey(),
            data);
    Executors.newScheduledThreadPool(1).schedule(updateTask, 1, TimeUnit.SECONDS);
}