Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Thank for your explanation. But I still have a confusing. As you said: “//synchronization is used to make sure any observer registered after message is received is not notified” in comment of class my topic, the synchronization is used for that purpose. But as my understanding about synchronization, the method “public void register(Observer obj)” and method "public void notifyObservers() " still can be run parallel. It means the observers that registered after message is received also can be notified.
- Vinh Bui
Thanks for your effort i really learned from it but your line (this.observers=new ArrayList();) it need to enhanced to (this.observers = new ArrayList();) Thanks, Mohammed Gamal Software Engineer
- mohammed
Thanks for this explanation! The only thing I don’t completely get is the need of the setSubject method in the Observer. Could you please explain?
- Gerardo
i didn’t understand why the method getUpdate(Obserever obj) needs the Observer reference parameter since it doesnt uses it.
- yuval