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

Namespace: Appistry.FAM

Class FAM_Element

Properties

int Timeout This property specifies the amount of time the client waits for a request to the FAM space to complete. The get and set accessors are available for this property.
int MaxRetries This property specifies the maximum number of times the FAM space will retry a request. The get and set accessors are available for this property.
string Space This property specifies the space name. Only the get accessor is available for this property.
string Key This property specifies the key. Only the get accessor is available for this property.
FAM_Session Session This property specifies the session. Only the get accessor is available for this property.

Methods

FAM_Element<T>

FAM_Element <T>(string space,
                string key,
                FAM_Session famSession)

This is the FAM_Element constructor.

Get

T Get( )

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

T generic data-type value or instance (see supported list)
Exceptions FAM_Exception
FAM_SpaceExecption
FAM_InvalidInputException

Read

T Read( )

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

T generic data-type value or instance (see supported list)
Exceptions FAM_Exception
FAM_SpaceExecption
FAM_InvalidInputException

Write

void Write(T t)

This method writes data to the FAM space and delete the copy of the data.

T generic data-type value or instance (see supported list)
Exceptions FAM_Exception
FAM_SpaceExecption
FAM_InvalidSessionException
FAM_InvalidInputException
FAM_SessionLockException

Erase

void Erase ( )

This method deletes an element in the FAM.

Exceptions FAM_Exception
FAM_SpaceExecption
FAM_InvalidSessionException
FAM_InvalidInputException
FAM_SessionLockException

ToString

String ToString ( )

This method returns a descriptive string containing the space, key, timeout, maximum retries, and session data.

string descriptive string