arekolek
09/12/2019, 12:59 PMAmirul Zin
09/13/2019, 1:00 AMarekolek
09/13/2019, 6:54 AMunless you use something like Instacart TrueTime / do a NTP check manually per requestI’m thinking about OkHttp
CacheInterceptor
which calls System.currentTimeMillis()
anyway. So there is a way to let it know what the true time is despite this?louiscad
09/13/2019, 7:11 AMCacheInterecptor
be subclassed with this behavior changed?arekolek
09/13/2019, 7:36 AMRealCall
class that adds it to the list of interceptors, and it doesn’t seem like there’s a way to replace it.
Also, long now = System.currentTimeMillis();
is just one of 93 lines in CacheInterceptor#intercept
and CacheInterceptor
doesn’t look reusable through subclassinglouiscad
09/13/2019, 7:46 AMarekolek
09/13/2019, 8:34 AM