A functional interface for calculating the delay before a transaction is retried due to deadlock.
Returns the delay in milliseconds to wait for after the given transaction attempt number.