Interface Keeper


public interface Keeper
Provides a guard that allows only one winning Outcome but any number of loosing outcomes.
Author:
rob
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    grab(String ourIdentifier, Object instanceIdentifier)
    Attempt to Grab the right to continue.
  • Method Details

    • 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.