Skip to content

ahoffer/poller-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of a Polling Service.

This Spring application is built on top of dingye's polling library for Java.

The class PollingService is a reusable, HTTP polling polling.service. Once constructed, the method PollingService::poll is used to status polling an HTTP endpoint. The poll method accepts a lambda function. The lambda function is passed a RestTemplate for the client cod to use. The client code must return an instance of AttemptResult (a class from the dingye polling library). Use the AttemptResults factory class to create instances of AttemptResult

The test the app.poller

  • Run the status-endpoint application first.
  • Then run this Spring application.
  • The status of the polling.simulation is printed to the log.

About

Demonstration of a Java/Springboot polling app.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages