|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ResourceTypeListener | Listener to be notified about status changes about resources of the same type of the object to which that listener has been attached to. |
ScarceResource | Represents resources that requires special handling for reserving and releasing. |
ScarceResourceListener | Listener to be notified about release status of a given scarce resource. |
Class Summary | |
---|---|
ScarceResourcePermission | This class is used for various permissions related to scarce resources. |
Exception Summary | |
---|---|
TimeoutException | Signals that a timeout has occurred. |
Provides a basic framework for scarce resources.
This generic framework is used by classes that represents physical resources
within the platform that requires a basic lock handling. The
ScarceResource
interface is meant to be used by the
implementation.
Application are given a mean to request for a resource in a more or less friendly manner: assuming the corresponding right is granted, an application may force a reservation letting the current owner losing its resource. On the other side, an application is well informed about any intentions of having its resource being requested by other applications.
This package is composed by the following classes:
ScarceResource
: is the interface to be implemented by
any classes representing a physical resource. Allows to reserve or release
that resource;ScarceResourceListener
: allows an application to get
informed whenever a resource is being or is about to be released;ScarceResourcePermission
: allows to control the access to
a given scarce resource. An application may be granted the right to
reserve
or even to force
the reservation of a
scarce resource.ResourceEventListener
: allows an application to follow
events related to reservation/release of any resources (of a given type).
The listener registration is offered by specialized scarce resource
classes.
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |