Add support for canceling Jobs.

This commit is contained in:
Greyson Parrelli
2020-01-03 14:10:16 -05:00
parent b10ce080a9
commit 38597aea00
66 changed files with 137 additions and 79 deletions

View File

@@ -48,7 +48,7 @@ public class MigrationCompleteJob extends BaseJob {
}
@Override
public void onCanceled() {
public void onFailure() {
throw new AssertionError("This job should never fail.");
}

View File

@@ -54,7 +54,7 @@ abstract class MigrationJob extends Job {
}
@Override
public void onCanceled() {
public void onFailure() {
throw new AssertionError("This job should never fail. " + getClass().getSimpleName());
}

View File

@@ -99,7 +99,7 @@ public final class RegistrationPinV2MigrationJob extends BaseJob {
}
@Override
public void onCanceled() {
public void onFailure() {
}
public static class Factory implements Job.Factory<RegistrationPinV2MigrationJob> {