Middle assignment in Java course - Live Chat
Implements of kind of design patterns:
- Consumer Producer - Interface
- Singelton - Server
- Proxy - Mediate between server and client
- Observer - Class that holds all the users and notify when user get massage
Impliments of client side view
Impliment of Server side - Create socket connection - Provide TCP connection to other users on same socket
Holds list of consumets
- Hendle reciving and sending massages to users
Interface provide producer methods
Interface provide consumer methods
- Inform() send notification to producer
- consume() ask for service from producer
Insulation layer that promise the server and the client will not corrupted
Holds user name
- When user send message - his name attached to the message
Done