Package: com.appistry.fam
Class FAM_Element<T>
FAM_Element
FAM_Element<T> (String space,
String key,
FAM_Session famSession)
This constructor creates a local representation of the FAM element.
| string |
space name |
| string |
key |
| FAM_Session |
FAM session object |
| FAM_Element |
FAM element object |
| Exceptions |
NullPointerException |
get
This function places a lock on the original data in the FAM space and returns a copy.
read
This function returns a copy of the data in the FAM space without locking the original data.
write
This function writes the element to the FAM and releases the lock.
erase
This function deletes an element in the FAM.
setTimeout
void setTimeout(int timeout)
This function sets the amount of time the client waits for a request to this FAM space to complete.
| int |
maximum amount of time, in milliseconds, the client waits for a request to complete |
getTimeout
This function returns the amount of time the client waits for a request to this FAM space to complete.
| int |
maximum amount of time, in milliseconds, the client waits for a request to complete |
setMaxRetries
void setMaxRetries(int maxRetries)
This function sets the maximum number of times the FAM space will retry a request.
| int |
maximum number of times the FAM will retry a request |
getMaxRetries
| int |
maximum number of times the FAM will retry a request |
This function returns the maximum number of times the FAM space will retry a request.
getSpace
This function returns the space name passed in the constructor.
getKey
This function returns the key passed in the constructor.
getSession
FAM_Session getSession( )
This function returns the session object passed in the constructor.
| FAM_Session |
session object |
toString
This function returns a string representation of the object.