davicdsalves
12/16/2016, 6:42 PMopen class RestTemplateAdapter @Autowired constructor(val retryProperties: RetryProperties,
val restTemplate: RestTemplate) {
private fun createEventNotHandledException(eventDate: LocalDateTime, ex: RestClientException): EventNotHandledException {
return EventNotHandledException(
TimeUnit.MINUTES.toMillis(retryProperties.ioerror.backoff),
eventDate.plusHours(retryProperties.ioerror.expiration),
ERROR_MSG, ex)
}
}