Questions tagged [event-driven]

The event-driven paradigm of programming centralizes all waiting for events to one generalized loop that delivers (dispatches) events to registered listeners (event handlers).

The event-driven paradigm of programming centralizes all waiting for events to one generalized loop that delivers (dispatches) events to registered listeners (event handlers). When triggered, the event handlers change the state of the program, sometimes even by de-registering event handlers.

418 questions
0
votes
0 answers

Event Driven Processing in Spring With Transaction Persistence (Jdbc) Fault Taulernce

I have a spring based project. There are different process that run which take data process it. I need to add an event driven framework that would allow me to call another task/process for processing the data async. There must be persistence and…
Tushar Kundra
  • 29
  • 2
  • 6
0
votes
0 answers

Spring Cloud Stream - Output Messages from EventListener

I'm trying to utilize the @DomainEvents mechanism provided by Spring Data to publish Events with Spring Cloud Stream (Spring Boot 2.0.0.M7 and Finchley.M5). I have a two-part question. Why does SendTo not work on EventListeners? Is there a better…
0
votes
2 answers

Is it possible to use select(2) to watch for SDL text input events?

We have to program a server and a client using event-driven programming - we use select(2) to read from stdin and sockets. I'm making an interface for the client using the SDL2 and SDL2_TTF libraries. The problem is I don't know how to make…
liara
  • 13
  • 3
0
votes
2 answers

NodeJs: Single thread issue?

I was learning node js when I found this issue. I made a route in express app and when the thread hits the route its call a sleep function and wakes after 10 sec. During this time I was not able to access other routes in the system. I tried the same…
0
votes
1 answer

Trying to get filepath through Openfiledialogue

I am writing code for button click on which using filedialogue the file opens and i am able to choose picture from it. then i want to extract the path of the file and store it in a string variable and pass that as argument ( here compiler throws…
0
votes
2 answers

Designing a simple event-driven GUI

I am creating a simple event-driven GUI for a video game I am making with LibGDX. It only needs to support buttons (rectangular) with a single act() function called when they are clicked. I would appreciate some advice on structuring because the…
the_pwner224
  • 99
  • 1
  • 1
  • 11
0
votes
1 answer

Ruby 24/7 working XMPP bot

Could someone help me with this? I would to create a bot which receives word in one language, looks in database, gets translation and sends it back. How i understand it's not possible on shared hostings, but possible on own servers or VDS. So do i…
user633230
  • 21
  • 2
0
votes
0 answers

How do we use event driven programming in Java Swing

I've two separate class, ClassA and ClassB and there are everything private within either of these classes, now when we dispatch any event in ClassB then ClassA should know that some event has been triggered in ClassB. i.e.: ClassA { ClassB b =…
Youthoria
  • 51
  • 4
0
votes
1 answer

Does Spring Cloud Stream support RabbitMQ Stomp over Websocket

I'm using Spring Cloud Stream (SpringBoot) to communicate with RabbitMQ instance. The project could connect to RabbitMQ through AMQP, but not work for STOMP. Anyone knows: is stomp supported or not and how to configure? (My RabbitMQ has opened the…
JasonS
  • 445
  • 1
  • 5
  • 17
0
votes
1 answer

IBM MQ vs Apache Kafka as a message broker/engine for Event Driven Architecture and Microservices Architecture

Context: My company uses WebLogic AppServer and Oracle Service Bus for SOA service orchestration and choreography. We would like to move forward to an event-driven, microservices architecture. The key point is to eliminate the complex of service…
0
votes
2 answers

What is a good event store/stream middleware for service-oriented/ microservice-architectures

I am building a microservice-architecture and I am looking for a good way to stream events. Currently I have a service that publishes an event that three other services need to react to in a certain way, however the reaction to this event shall…
KaffeeKaethe
  • 301
  • 1
  • 3
  • 10
0
votes
2 answers

Making a text based game that waits for a JButton event

I'm looking for a way to make a simple text based game, though I'm having problems doing it in Event Driven rather than a game loop. The basic way that the game plays: Says what monster you are fighting. Attack. When it is defeated, you go to the…
0
votes
5 answers

Modify Time for simulation in c++

i am writing a program which simulates an activity, i am wondering how to speed up time for the simulation, let say 1 hour in the real world is equal to 1 month in the program. thank you the program is actually similar to a restaurant simulation…
chandra wib
  • 67
  • 4
  • 8
0
votes
1 answer

Python asyncio timely event handling

I'm playing a bit with python's asyncio library, in the wake of this example, I wrote the following scripts: # file: get_rand.py from random import choice from time import sleep import sys def main(): sys.stderr.write('child: starting…
0
votes
3 answers

ng-keypress to call function in angularjs

I have send button and I click on that button I send text from input. I want also on enter keyboard to send that text. I try with two solutions and nothing.. You can find my code below: First Solution
Micko
  • 431
  • 8
  • 27