Code Monkey home page Code Monkey logo

Comments (13)

iluwatar avatar iluwatar commented on May 17, 2024

Thinking in Java book

from java-design-patterns.

hannomalie avatar hannomalie commented on May 17, 2024

I'll give it a try :)

from java-design-patterns.

hannomalie avatar hannomalie commented on May 17, 2024

I pushed a module in a new branch. Since I wasn't satisfied with the simple "I have my own thread"-implementation one can find everywhere, I implemented return values with futures and a task queue as well.

Would be glad if I get some comments. If the code is good, I will add readme and uml stuff.

Thanks :)

from java-design-patterns.

iluwatar avatar iluwatar commented on May 17, 2024

Real world example: http://doc.akka.io/docs/akka/2.4.1/java/typed-actors.html

from java-design-patterns.

Rzeposlaw avatar Rzeposlaw commented on May 17, 2024

Hello, can I work on this now?

from java-design-patterns.

iluwatar avatar iluwatar commented on May 17, 2024

Ok @Rzeposlaw it is yours.

from java-design-patterns.

tzutalin avatar tzutalin commented on May 17, 2024

@Rzeposlaw,
It will be nice to explain the difference between active object pattern and event-driven-architecture/event-asynchronous.

from java-design-patterns.

isabiq avatar isabiq commented on May 17, 2024

I think the two patterns have some similarities but they are different in many aspects. The main goal of the event asynchronous is to hide the complexity of a multi-threaded design. Normally, a user want to execute his tasks asynchronously so he delegates the tasks to another objects that control and supervise the execution of these tasks. For me, The pattern has a really narrow use case, and I see it mainly used in GUI applications when performing short background operations and publishing results to the UI thread.

For the active object it is a pattern used to decouple method invocation from its execution. It is a complex pattern that hold in its implementation other patterns. So here, it is about a client calling a proxy to benefit from a certain service not delegating a task of his. Also, while both pattern use multi-threaded environments, the active object introduces other concepts, like a scheduler which provide another layer of managing and prioritizing requests, a servant for defining the behavior and state, and also method requests and activation queue.

from java-design-patterns.

iluwatar avatar iluwatar commented on May 17, 2024

@Rzeposlaw are you still implementing this?

from java-design-patterns.

iluwatar avatar iluwatar commented on May 17, 2024

This issue is free again

from java-design-patterns.

noamgrinch avatar noamgrinch commented on May 17, 2024

Hey, @iluwatar I have implemented this pattern and ready to push to my branch.
May I please get permissions to commit and push?

from java-design-patterns.

noamgrinch avatar noamgrinch commented on May 17, 2024

@iluwatar ?

from java-design-patterns.

iluwatar avatar iluwatar commented on May 17, 2024

@noamgrinch please follow the normal Github forking workflow. You don't need write access to this repository, you can fork it on your own account and propose changes from there. See Github's documentation.

from java-design-patterns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.