Add equals and hashcode methods for SpeculativeRetry (CASSANDRA-6712)