Spring Integration Essentials by Chandan Pandey
Author:Chandan Pandey [Pandey, Chandan]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2015-02-20T05:00:00+00:00
Maven entry can be added by using the following code snippet:<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-twitter</artifactId> <version>${spring.integration.version}</version> </dependency>
Receiving tweets
Spring Integration has exposed inbound adapters for receiving tweets. Twitter tweets are of different types, and Spring provides support for receiving tweets as Timeline Updates, Direct Messages, Mention Messages, as well as Search Results.
Spring's inbound adapter is a polling-based mechanism that polls the Twitter site for updates at defined intervals. Be aware of Twitter's Rate Limiting; it limits the rate at which an application can poll for the updates. Factor this when setting the polling interval so that it's in compliance with the Twitter policies. Let's look at a working code snippet:
<int-twitter:inbound-channel-adapter id="testTweet" twitter-template="twitterTemplate" channel="twitterChannel"> </int-twitter:inbound-channel-adapter>
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12570)
Hello! Python by Anthony Briggs(9915)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9778)
Dependency Injection in .NET by Mark Seemann(9339)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8297)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7073)
Microservices with Go by Alexander Shuiskov(6839)
Practical Design Patterns for Java Developers by Miroslav Wengner(6759)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6700)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6413)
Angular Projects - Third Edition by Aristeidis Bampakos(6103)
The Art of Crafting User Stories by The Art of Crafting User Stories(5631)
NetSuite for Consultants - Second Edition by Peter Ries(5566)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5371)
Kotlin in Action by Dmitry Jemerov(5062)
