I want to use Cache for system where one application(Server) and multiple application are client. Now they are sharing one shared HashMap .
And all client application only reads from Hashmap, [Is there anyway to block writing by client in Cache?? ]
And Server app will put data in that Hashmap. When reconnection happens, Client's data [which may having N-m data, where m is data added by server when client application was disconnected] is replaced on server [which is having N data], so all the entry done on server [m], after disconnection of a client is reverted back.
Is there anyway to ensure that client sync there data with Server only.????