Package com.datasift.client.push

Examples of com.datasift.client.push.PushSubscription.status()


        String name = "Java push name", updatedName = name += " updated";
        PushSubscription subscription =
                stream != null ? datasift.push().create(s3, stream, name).sync()
                        : datasift.push().create(s3, query, name).sync();
        successful(subscription);
        Assert.assertTrue(subscription.status().isActive());
        //test update
        PushSubscription updatedSubscription = datasift.push().update(subscription.getId(), s3, updatedName).sync();
        successful(updatedSubscription);
        assertEquals(updatedName, updatedSubscription.name());
        return subscription;
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.