Skip to main content

All Questions

1 vote
2 answers
529 views

What do you call a class that can be disabled [closed]

Is there a design pattern that fits this description? A factory that creates classes that can be disabled and enabled. The users of the class don't know if the functionality is enabled or disabled--...
anton's user avatar
  • 21
0 votes
2 answers
512 views

State ownership cover everything for a class to be thread safe

As mentioned by Java_author, When defining which variables form an object's state, we want to consider only the data that object owns.... In many case, ownership and encapsulation go together— the ...
user1787812's user avatar
1 vote
1 answer
349 views

How to design the system which executes two process independently with different configuration?

I have two process ProcessA and ProcessB. I want to run these two process independent of each other. There is no relation between them at all. Each process should have a different Properties object. ...
david's user avatar
  • 123
6 votes
3 answers
2k views

Design solution for communicating between multiple layers

We are developing a framework that has several layers and would be deployed in a multi-threaded environment. Each layer may have its own input/output data type. The top layer takes the input, performs ...
intoTHEwild's user avatar
40 votes
3 answers
33k views

Can someone explain in simple terms what is the disruptor pattern?

I would like if you could explain to me in a simple way how does the disruptor patter work. This concept has been elusive to me as of know. Perhaps with your help I could comprehend it.
chrisapotek's user avatar
1 vote
3 answers
2k views

Design pattern for a multi-threaded URL fetcher in java

I'm looking for hints and suggestions on a design for a multi-threaded URL fetcher in java. Specific requirements are: To fetch each one of around 1,000 URLs periodically The interval between each ...
Richard H's user avatar
  • 113