4ntoine
01/31/2019, 5:51 AMcommonTest
are working (not using resources though) so i believe build.gradle
should be ok:Stefan Peterson
05/28/2019, 5:25 PMresilience4j
is the best option for that.
That being said I am having a hard time understanding how to register a method call with the circuit breaker. It looks like one has to change the implementation to be a Supplier / Runnable / Function / CheckedRunnable / CheckedFunction
and I am not particularly familiar with any of those. My function is basically a wrapper around RestTemplate::exchange
so I think Function
is the appropriate choice. Or am I approaching this entirely wrong and should I be decorating something entirely different with the circuit breaker?
Note: I realize this isn't really a K specific question, I can take it down if it violates some rulesdumptruckman
05/28/2019, 6:23 PMforEach
block?amanda.hinchman-dominguez
05/29/2019, 1:20 AMjava.lang.IllegalStateException: LOGGING: Loading modules: [<http://java.se|java.se>,...and so on]`
amanda.hinchman-dominguez
05/29/2019, 1:21 AMamanda.hinchman-dominguez
05/29/2019, 4:47 AMuser
05/29/2019, 7:30 AMpablisco
05/30/2019, 12:44 PMRak
05/30/2019, 2:30 PMQuy D X Nguyen
05/31/2019, 7:57 PMenighma
05/31/2019, 11:53 PMkarelpeeters
05/31/2019, 11:58 PMkarelpeeters
05/31/2019, 11:59 PMenighma
05/31/2019, 11:59 PMkarelpeeters
06/01/2019, 12:01 AMSOFe
06/01/2019, 7:12 AMClassName
to directly represent the KClass/java.lang.Class based on type inference?SOFe
06/01/2019, 7:13 AMVague
06/01/2019, 11:03 AMval
with the lateinit
keyword?
Using val on a local variable, I can separate the declaration and assignment, for example:
val c: Int
c = 80
Why can't I do:
lateinit val c: Int
And in my initialization,
c = 8
Just to ensure that c
is only set onceSOFe
06/01/2019, 11:08 AMEvan R.
06/01/2019, 2:11 PMval c: Int
init {
this.c = 5
}
Evan R.
06/01/2019, 2:12 PMAndrew Gazelka
06/02/2019, 4:14 AMkarelpeeters
06/02/2019, 1:24 PMkarelpeeters
06/02/2019, 1:25 PMkarelpeeters
06/03/2019, 11:54 AMsxtanna
06/04/2019, 2:10 AMResult<T>
type only has two options, I feel like if it's not one, the type inference should know its the other...Kroppeb
06/04/2019, 1:06 PMmandeep
06/04/2019, 11:08 PM