Package: com.appistry.fam
Class FAM_Queue<T>
FAM_Queue
FAM_Queue<T>(String space,
String key,
FAM_Session session)
The constructor for the queue object.
| string |
space identifier} |
| string |
key |
| FAM_Session |
session identifier |
| Exceptions |
NullPointerException |
push
This function adds data to the end of a queue.
pop
This function returns data from the FAM and places a lock on the FAM.
| T |
data returned the FAM; NULL if timed out |
unpop
This function adds the data that was removed in the previous pop function and removes the lock.
setTimeout
void setTimeout(int timeout)
This function sets the amount of time the client waits for a FAM operation to this FAM space to complete.
| int |
maximum amount of time, in milliseconds, the client waits for a FAM operation to complete |
getTimeout
This function returns the amount of time the client waits for a FAM operation to this FAM space to complete.
| int |
maximum amount of time, in milliseconds, the client waits for a FAM operation to complete |
setMaxRetries
void setMaxRetries(int maxRetries)
This function sets the maximum number of times the FAM space will retry a FAM operation.
| int |
maximum number of times the FAM will retry a FAM operation |
getMaxRetries
This function returns the maximum number of times the FAM space will retry a FAM operation.
| int |
maximum number of times the FAM will retry a FAM operation |
getSpace
This function returns the space name.
getKey
This function returns the key.
toString
This function returns a string representation of the object.