jaugment2.speech
Class JavaSpeechService.storedItem
java.lang.Object
|
+--jaugment2.speech.JavaSpeechService.storedItem
- Enclosing class:
- JavaSpeechService
- private class JavaSpeechService.storedItem
- extends java.lang.Object
- implements com.sun.jini.lease.landlord.LeasedResource, java.lang.Comparable
an abstract item stored by our lease-management-code
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
leaseExpiration
private long leaseExpiration
cookie
private java.lang.Object cookie
item
private java.lang.Object item
JavaSpeechService.storedItem
JavaSpeechService.storedItem(long leaseExpiration,
java.lang.Object cookie,
java.lang.Object item)
setExpiration
public void setExpiration(long newExpiration)
- Specified by:
- setExpiration in interface com.sun.jini.lease.landlord.LeasedResource
getExpiration
public long getExpiration()
- Specified by:
- getExpiration in interface com.sun.jini.lease.landlord.LeasedResource
getCookie
public java.lang.Object getCookie()
- Specified by:
- getCookie in interface com.sun.jini.lease.landlord.LeasedResource
compareTo
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
- we are comparable, so we can be stored sorted by expiration-date
- Specified by:
- compareTo in interface java.lang.Comparable
getItem
public java.lang.Object getItem()
setItem
public void setItem(java.lang.Object item)