|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceResource
public class ServiceResource
Leased service resources to be used with LeaseDurationPolicy and/or
LeaseManager
| Field Summary | |
|---|---|
protected Uuid |
cookie
|
protected long |
expiration
|
Lease |
lease
|
Object |
resource
|
| Constructor Summary | |
|---|---|
ServiceResource(Object resource)
Create a ServiceResource |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Overrides equals() to be based on the value of the cookie attribute |
Uuid |
getCookie()
Returns a unique identifier that can be used by the grantor of the resource to identify it |
long |
getExpiration()
Returns the expiration time of the leased resource. |
Object |
getResource()
Returns the resource that is being leased |
int |
hashCode()
Overrides hashcode() to be based on the hashcode of the
cookie attribute |
void |
setExpiration(long expiration)
Changes the expiration time of the leased resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Uuid cookie
protected long expiration
public Lease lease
public Object resource
| Constructor Detail |
|---|
public ServiceResource(Object resource)
resource - The resource being leased| Method Detail |
|---|
public long getExpiration()
getExpiration in interface LeasedResourcepublic void setExpiration(long expiration)
setExpiration in interface LeasedResourceexpiration - The new expiration time in milliseconds since the beginning of
the epochpublic Uuid getCookie()
getCookie in interface LeasedResourcepublic Object getResource()
public boolean equals(Object o)
equals() to be based on the value of the cookie attribute
equals in class Objectpublic int hashCode()
hashcode() to be based on the hashcode of the
cookie attribute
hashCode in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||