Skip to content

How to extract string from Mono in reactor core

I have a Mono<String> object in reactor. How can I get a string value from this object? I know I can do something like below : For Mono<String> userName, I can do, But this will directly print the value. I want to store this string value into another variable so that I can pass that variable aroun…

How check if an Attribute(object) is null in Java

I need specific data for a report, then I gettin all information from a parent object Object1 It has many attributes, object attributes Object11, Object12, Object13, attr1, attr2… The attributes has many attributes too Object111, Object131, Object132,.. by now I got 5 level data attributes. When I send …

Removing items from a queue in Java

Let’s say i have a queue of objects in Java like this: Queue q = new LinkedList(); with Element being: class Element { public int x; public int y; public …

Beam – Error while branching PCollections

I have a pipeline that reads data from kafka. It splits the incoming data into processing and rejected outputs. Data from Kafka is read into custom class MyData and output is produced as KV<byte[], byte[]> Define two TupleTags with MyData. InvalidDataDoFn has application logic that splits MyData data in…