ServiceContextResourceUsage

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.service
Interface ServiceContextResourceUsage

All Superinterfaces:
  ResourceUsage

    public interface ServiceContextResourceUsage

extends ResourceUsage

This interface represents a ResourceUsage corresponding to a group of resources implicitly reserved by the implementation for the successful completion of the ServiceContext.select() method. An object implementing this interface should be used by the implementation to represent ResourceUsages corresponding to ServiceContext when the ResourceContentionHandler.resolveResourceContention() method is invoked.

Method Summary
`Service` | `getRequestedService()` Gets the `Service` that was requested when the resource contention was incurred.
`ServiceContext` | `getServiceContext()` Gets the `ServiceContext` for which the resources have been reserved.

Methods inherited from interface org.ocap.resource.ResourceUsage
`getAppID, getResource, getResourceNames, getResourcePriority`

Method Detail

### getServiceContext

    ServiceContext getServiceContext()

  Gets the `ServiceContext` for which the resources have been reserved.

  Returns:
    the ServiceContext for which the resources have been reserved.

### getRequestedService

    Service getRequestedService()

  Gets the `Service` that was requested when the resource contention was incurred.

  Returns:
    Service requested.

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

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