Tries to remove the entry with the given key from this map within specified timeout value. If the key is already locked by another thread and/or member, then this operation will wait timeout amount for acquiring the lock.
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.
Warning-2:
This method returns a clone of previous value, not the original (identically equal) value previously put into map.
@param key key of the entry
@param timeout maximum time to wait for acquiring the lockfor the key
@param timeunit time unit for the timeout
@return
true if the remove is successful,
falseotherwise.
@throws NullPointerException if the specified key is null