Module org.cryptomator.cryptofs
Class SimpleMigrationContinuationListener
java.lang.Object
org.cryptomator.cryptofs.migration.api.SimpleMigrationContinuationListener
- All Implemented Interfaces:
MigrationContinuationListener
public abstract class SimpleMigrationContinuationListener
extends Object
implements MigrationContinuationListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cryptomator.cryptofs.migration.api.MigrationContinuationListener
MigrationContinuationListener.ContinuationEvent, MigrationContinuationListener.ContinuationResult -
Field Summary
Fields inherited from interface org.cryptomator.cryptofs.migration.api.MigrationContinuationListener
CANCEL_ALWAYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInvoked when the migration requires action.final voidContinues the migration on its original thread with the desired ContinuationResult.abstract voidInvoked when the migration requires action.
-
Constructor Details
-
SimpleMigrationContinuationListener
public SimpleMigrationContinuationListener()
-
-
Method Details
-
migrationHaltedDueToEvent
public abstract void migrationHaltedDueToEvent(MigrationContinuationListener.ContinuationEvent event) Invoked when the migration requires action.Usually you want to ask for user feedback on the UI thread at this point.
- API Note:
- This method is called from the migrator thread
- Parameters:
event- The migration event that occurred
-
continueMigrationWithResult
public final void continueMigrationWithResult(MigrationContinuationListener.ContinuationResult result) Continues the migration on its original thread with the desired ContinuationResult.- API Note:
- This method can be called from any thread.
- Parameters:
result- How to proceed with the migration
-
continueMigrationOnEvent
public final MigrationContinuationListener.ContinuationResult continueMigrationOnEvent(MigrationContinuationListener.ContinuationEvent event) Description copied from interface:MigrationContinuationListenerInvoked when the migration requires action.This method is invoked on the thread that runs the migration. If you want to perform longer-running actions such as waiting for user feedback on the UI thread, consider subclassing
SimpleMigrationContinuationListener.- Specified by:
continueMigrationOnEventin interfaceMigrationContinuationListener- Parameters:
event- The migration event that occurred- Returns:
- How to proceed with the migration
- See Also:
-