com.spikeify.taskqueue.ExecutionContext Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of taskqueue Show documentation
                Show all versions of taskqueue Show documentation
Taskqueue service utilizing Spikeify with Aerospike database
                
             The newest version!
        
        package com.spikeify.taskqueue;
/**
 *
 */
public class ExecutionContext implements TaskContext {
	private final TaskContext outerContext;
	private boolean cancel;
	public ExecutionContext(TaskContext context) {
		outerContext = context;
	}
	@Override
	public boolean interrupted() {
		return cancel || outerContext.interrupted();
	}
	@Override
	public void interrupt() {
		cancel = true;
	}
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy