@Override
    public boolean equals(Object other) {
      if (this == other) {
        return true;
      }
      if (other instanceof Key) {
        Key toTest = (Key) other;
        return (toTest.console.equals(console) && toTest.msgId == msgId);
      }
      return false;
    }
This class provides a way for a {@link CancellationMessage} to find its prey. An
{@link AdminRequest} that implements {@link Cancellable} should register with this class before
doing any work, and deregister just before returning it's response.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/CancellationRegistry.java