Questions tagged [consumer]

649 questions
-1
votes
1 answer

Java consumer with return

I don't understand why this code is working: class Resource { private Resource() { System.out.println("created..."); } public Resource op1() { System.out.println("op1"); return this; } public Resource…
sakajato
  • 5
  • 2
-1
votes
1 answer

CONSUME_FROM_LAST offset is noneffective

I changed my consume group and start to consume,it consumed from last offset as default,it is right. But when i restart this consumer it consume the history message,why it not consume the history message for the first time startup but do for the…
camus
  • 11
  • 4
-1
votes
1 answer

ActiveMQ non-persistent delivery mode limitations?

I am using ActiveMQ where I need following requirements To have very fast consumers as my producers are already very fast Need processing at lease 2K messages per second Not require to process/consume messages again in case of server crash or…
Vishal Zanzrukia
  • 4,902
  • 4
  • 38
  • 82
-1
votes
1 answer

MultiThreading producer/consumer

I'm writing a basic producer/consumer threading code. I got most of it to work, but I'm having an issue with rand(). Or maybe my issues are deeper than rand(), and rand is only the tip of the iceberg. I don't want to do anything too complex, (none…
Jack Faber
  • 37
  • 6
-1
votes
1 answer

how to process a file exactly once

My Java application reads data from directory and puts into a common shared resource queue, the consumer will consume the event validate the event and save it into database, i want to process the files in the directory only once even if the…
Nani
  • 1
  • 1
-1
votes
1 answer

Readers - writer: Segmentation fault c++

So I have a little program that is simulating a webcam. So the frames (in my program the value of the data) have to be saved in 2 files and on screen. But when i run my code i get a segmentation fault; #include #include #include…
-1
votes
1 answer

Kafka stream queue - configure consumer property queuedchunks.max

Consumer's property queuedchunks.max meaning is a bit shadowy. I see, that each stream in consumer has a queue with capacity defined (queuedchunks.max). 1) But, if my consumer starts consume more topics (within single stream), will that affect…
Vladimir Nabokov
  • 1,797
  • 1
  • 14
  • 19
-1
votes
2 answers

One producer Multiple Consumer performance

My Java program has Client-Server architecture. In client side i create 1 message and with 10000 thread i send it to server as 10000 client send one message in same time. And in Server class side i have queue with fixed size and every messages…
-1
votes
1 answer

How to use execl() to execute another program

I have an assignment on producer-consumer with using multiprocessor and shared memory I have a question how to use execl() to execute another file In my program will consist of 3 c files parent.c : parent process producer.c : producer…
someone
  • 365
  • 1
  • 5
  • 14
-1
votes
5 answers

Producer Consumer using threads

I’m writing a program that implements the Producer Consumer problem in Java using multithreading concepts. Below are few details how I’m supposed to do it: 1) The main thread should create a buffer with capacity specified as a command line…
user2201650
  • 527
  • 7
  • 13
  • 28
-1
votes
1 answer

Best Data Structure? - 2 Threads, 1 producer, 1 consumer

What is the best data structure to use to do the following: 2 Threads: 1 Produces (writes) to a data structure 1 Consumes (reads and then deletes) from the data structure. Thread safe Producer and Consumer can access data structure…
user1880826
  • 81
  • 1
  • 5
-2
votes
1 answer

golang producer consumer number of messages received

I have written producer-consumer pattern in golang. Reading multiple csv files and processing records. I am reading all records of csv file in one go. I want to log percentage of processing completion in interval of 5% of total records including all…
rahulpareekyx
  • 51
  • 1
  • 8
-2
votes
1 answer

undertanding purchasin strategy and lead time of passengers - Python

ticket purchase lead time <- press for image Hi, I'm 31 and started python a month ago, R 3 month ago. Calculated ticket purchase lead time for specific Destination of Airline. image is attached from final excell. tried plotting (bubble) but cannot…
-2
votes
1 answer

How to calculating the inflation adjustment for a period Verbraucherpreis index

How to calculate the inflation adjustment e.g. for Germany: amount: 1.500,- EUR index base: 2015 period: from 02.2020 to 02.2021
-2
votes
2 answers

What is the difference between Unary-Operator functional-interface to Consumer functional-interface?

I was wondering what is the difference between Unary-Operator and Consumer functional interfaces? Eventually, both of them get a function and apply it to a generic T. Thank you in advance!
1 2 3
43
44