Dashboard > Appistry EAF v3.8 > ... > Java FAM API > FAM_Element.java
Log In   View a printable version of the current page.  
  FAM_Element.java

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

T get( )

This function places a lock on the original data in the FAM space and returns a copy.

T copy of the data

read

T read( )

This function returns a copy of the data in the FAM space without locking the original data.

T copy of the data

write

void write(T value)

This function writes the element to the FAM and releases the lock.

T element

erase

void 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

int 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 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

String getSpace( )

This function returns the space name passed in the constructor.

string space name

getKey

String getKey( )

This function returns the key passed in the constructor.

string key

getSession

FAM_Session getSession( )

This function returns the session object passed in the constructor.

FAM_Session session object

toString

String toString( )

This function returns a string representation of the object.

string string