Package org.syncany.operations.watch

Examples of org.syncany.operations.watch.NotificationListener.subscribe()


    // Start
    notificationListener1.start();
    notificationListener2.start();
   
    notificationListener1.subscribe(randomChannelName);
    notificationListener2.subscribe(randomChannelName);
       
    Thread.sleep(1500); // Let them settle
   
    notificationListener1.announce(randomChannelName, "Message from 1");
    notificationListener2.announce(randomChannelName, "Message from 2");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.