Package feign.codec
Class ErrorDecoder.RetryAfterDecoder
- java.lang.Object
-
- feign.codec.ErrorDecoder.RetryAfterDecoder
-
- Enclosing interface:
- ErrorDecoder
public static class ErrorDecoder.RetryAfterDecoder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
apply(java.lang.String retryAfter)
returns a date that corresponds to the first time a request can be retried.protected long
currentTimeMillis()
-
-
-
Method Detail
-
currentTimeMillis
protected long currentTimeMillis()
-
apply
public java.util.Date apply(java.lang.String retryAfter)
returns a date that corresponds to the first time a request can be retried.- Parameters:
retryAfter
- String in Retry-After format
-
-