RecoveryToken Class

  • java.lang.Object
    • com.microsoft.azure.elasticdb.shard.recovery.RecoveryToken

public class RecoveryToken

Recovery token generated and used by methods of the RecoveryManager to perform conflict detection and resolution for shard maps.

Constructor Summary

Constructor Description
RecoveryToken()

Parameter less constructor to generate a new unique token for shard map conflict detection and resolution.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)

Determines whether the specified Object is equal to the current Object.

boolean equals(RecoveryToken other)

Performs equality comparison with another given RecoveryToken.

int hashCode()

Calculates the hash code for this instance.

String toString()

Converts the object to its string representation.

Constructor Details

RecoveryToken

public RecoveryToken()

Parameter less constructor to generate a new unique token for shard map conflict detection and resolution.

Method Details

equals

public boolean equals(Object obj)

Determines whether the specified Object is equal to the current Object.

Parameters:

obj - The object to compare with the current object.

Returns:

True if the specified object is equal to the current object; otherwise, false.

equals

public boolean equals(RecoveryToken other)

Performs equality comparison with another given RecoveryToken.

Parameters:

other - RecoveryToken to compare with.

Returns:

True if same locations, false otherwise.

hashCode

public int hashCode()

Calculates the hash code for this instance.

Returns:

Hash code for the object.

toString

public String toString()

Converts the object to its string representation.

Returns:

String representation of the object.

Applies to