org.springframework.batch.core.step
Interface StepExecutionSynchronizer


public interface StepExecutionSynchronizer

Strategy for blocking while a step execution is being updated.

Author:
Dave Syer

Method Summary
 void lock(StepExecution stepExecution)
          Lock the step execution, blocking if it has been locked by another thread.
 void release(StepExecution stepExecution)
          Release the lock.
 

Method Detail

lock

void lock(StepExecution stepExecution)
          throws InterruptedException
Lock the step execution, blocking if it has been locked by another thread.

Parameters:
stepExecution - the StepExecution that is in progress
Throws:
InterruptedException - if the thread is interrupted while waiting

release

void release(StepExecution stepExecution)
Release the lock. Use this in a finally block.

Parameters:
stepExecution -


Copyright © 2008 SpringSource. All Rights Reserved.