org.oddjob.scheduling
Interface Keeper


public interface Keeper

Provides a guard that allows only one winning Outcome but any number of loosing outcomes.

See Also:
GrabJob
Author:
rob

Method Summary
 Outcome grab(String ourIdentifier, Object instanceIdentifier)
          Attempt to Grab the right to continue.
 

Method Detail

grab

Outcome grab(String ourIdentifier,
             Object instanceIdentifier)
Attempt to Grab the right to continue.

Parameters:
ourIdentifier - Uniquely identifier the grabber. This will something like the host name.
instanceIdentifier - Identify an instance of a grab. This will be something like the schedule date.
Returns:
The outcome of the grab.