Tries to put the given key, value into this map within specified timeout value. If this method returns false, it means that the caller thread couldn't acquire the lock for the key within timeout duration, thus put operation is not successful.
Warning:
This method uses
hashCode and
equals of binary form of the
key, not the actual implementations of
hashCode and
equals defined in
key's class.
@param key key of the entry
@param value value of the entry
@param timeout maximum time to wait
@param timeunit time unit for the timeout
@return
true if the put is successful,
falseotherwise.
@throws NullPointerException if the specified key or value is null