Package net.jini.id
Interface ReferentUuid
- All Known Implementing Classes:
AbstractDirectSpaceProxy,org.jini.rio.resources.servicecore.AbstractProxy,ConstrainableEventLease,ConstrainableLandlordLease,EventLease,JSpaceAdminProxy,LandlordLease,MahaloTxnBasicLease,PUServiceBeanProxy,ServiceAdminProxy,SpaceProxyImpl,TxnMgrProxy
public interface ReferentUuid
Defines an interface that allows a proxy for a resource to express the identity of that resource.
Resources include items like services, leases, service registrations, and lease renewal sets. Any
resource that is represented by proxies that implement this interface has a unique identity. That
identity is expressed by assigning the resource a universally unique identifier. This universally
unique identifier will be represented using the
Uuid class. This Uuid
must be:
- Sufficient to uniquely identify the resource,
- associated with the resource for the resource's entire lifetime,
- never assigned to another resource who's proxies implement
ReferentUuid, and - returned by the
getReferentUuidmethod of any proxy of the resource, if that proxy implementsReferentUuid.
Given two
objects, o1 and o2, that implement ReferentUuid:
-
if
o1.equals(o2)istrue, theno1.getReferentUuidando2.getReferentUuidshould return equivalentUuids. - if
o1.getReferentUuidando2.getReferentUuidreturn equivalentUuids,o1.equals(o2)may, but is not required to betrue.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn theUuidthat has been assigned to the resource this proxy represents.
-
Method Details
-
getReferentUuid
Uuid getReferentUuid()Return theUuidthat has been assigned to the resource this proxy represents.- Returns:
- the
Uuidassociated with the resource this proxy represents. Will not returnnull.
-