You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem using AtomicBoolean or AtomicReference inside a client rx query, it looks like updates the Atomic value inside the query scope but you lose it outside this scope.
Is there any way to store some value inside the rxclient query and use it outside? Something like the next:
AtomicBoolean success = new AtomicBoolean(true);
Single<PgRowSet> pgRowSetSingle = cbaClient.rxPreparedQuery(query, tuple);
pgRowSetSingle.subscribe(result -> {
}, err -> {
success.set(false); // Is passing through this code
log.error("Failure: {}", err.getMessage());
});
log.info("Success value {}", success.get()); // Here the value is 'true' when should be 'false'
The text was updated successfully, but these errors were encountered:
Hi, the code in your subscribtion block is called only when the asynchronous result is completed but the method is quickly returned so your logging does not make sense here.
Hi,
I have a problem using
AtomicBoolean
orAtomicReference
inside a client rx query, it looks like updates the Atomic value inside the query scope but you lose it outside this scope.Is there any way to store some value inside the rxclient query and use it outside? Something like the next:
The text was updated successfully, but these errors were encountered: