public void set ( int deviceId , T object ) { try { locksMap . get ( deviceId ) . writeLock ( ) . lock ( ) ; backingMap . put ( deviceId , object ) ; } finally { locksMap . get ( deviceId ) . writeLock ( ) . unlock ( ) ; } }
This method sets object for specific device