Example usage for org.springframework.boot.devtools.livereload Connection triggerReload

List of usage examples for org.springframework.boot.devtools.livereload Connection triggerReload

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.livereload Connection triggerReload.

Prototype

void triggerReload() throws IOException 

Source Link

Document

Trigger livereload for the client using this connection.

Usage

From source file:org.springframework.boot.devtools.livereload.LiveReloadServer.java

/**
 * Trigger livereload of all connected clients.
 *///from w  ww.  j  a  v a 2 s  .co m
public void triggerReload() {
    synchronized (this.connections) {
        for (Connection connection : this.connections) {
            try {
                connection.triggerReload();
            } catch (Exception ex) {
                logger.debug("Unable to send reload message", ex);
            }
        }
    }
}