RequestRetryCallback

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ocap.resource
Interface RequestRetryCallback

    public interface RequestRetryCallback

An instances of `RequestRetryCallback` SHALL be provided when enabling automatic reservation request retry via the `ResourceContext`. This defines the callback interface that is used to notify the application of successful resource reservation in case of a retry.

This interface is used only to notify the application of successful resource reservation following an automatic retry. It SHALL NOT be invoked due to an immediate reservation request.

Author:
  Aaron Kamienski
See Also:
  `ResourceContext.setRequestRetry(org.ocap.resource.RequestRetryCallback)`

Method Summary
`void` | `notifyReserved(ResourceProxy proxy, Object requestData, ResourceClient client)` A call to this method notifies the implementing application that the given resource was successfully reserved following an automatic retry.

Method Detail

### notifyReserved

    void notifyReserved(ResourceProxy proxy,
                        Object requestData,
                        ResourceClient client)

  A call to this method notifies the implementing application that the given resource was successfully reserved following an automatic retry.

  Parameters:
    `proxy` - represents the scarce resource that was reserved
    `requestData` - application specific data given at original reservation request
    `client` - the `ResourceClient` specified for the original reservation request

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD