All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.octo.android.robospice.command.SetFailOnCacheErrorCommand Maven / Gradle / Ivy

package com.octo.android.robospice.command;

import com.octo.android.robospice.SpiceManager;
import com.octo.android.robospice.SpiceManager.SpiceManagerCommand;
import com.octo.android.robospice.SpiceService;

public class SetFailOnCacheErrorCommand extends SpiceManagerCommand {
    private final boolean failOnCacheError;

    public SetFailOnCacheErrorCommand(SpiceManager spiceManager, boolean failOnCacheError) {
        super(spiceManager);
        this.failOnCacheError = failOnCacheError;
    }

    @Override
    protected Void executeWhenBound(SpiceService spiceService) {
        spiceService.setFailOnCacheError(failOnCacheError);
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy