TIBCO eFTL™
Public Member Functions | List of all members
TIBCO.EFTL.IKVMap Interface Reference

A key-value map object represents a program's connection to an FTL map. More...

Public Member Functions

void Get (String key, IKVMapListener listener)
 Get the value of a key from the map, or null if the key is not set More...
 
void Remove (String key, IKVMapListener listener)
 Remove a key-value pair from the map. More...
 
void Set (String key, IMessage value, IKVMapListener listener)
 Set a key-value pair in the map, overwriting any existing value. More...
 

Detailed Description

A key-value map object represents a program's connection to an FTL map.

Programs use key-value map objects to set, get, and remove key-value pairs in an FTL map.

Member Function Documentation

void TIBCO.EFTL.IKVMap.Get ( String  key,
IKVMapListener  listener 
)

Get the value of a key from the map, or null if the key is not set

This call returns immediately; getting continues asynchronously. When the get completes successfully, the eFTL library calls your IKVListener.OnSuccess callback.

Parameters
keyGet the value for this key.
listenerThis listener defines callback methods for successful completion and for errors.
Exceptions
ExceptionThe connection is not open.
See Also
IKVMapListener, IConnection.CreateKVMap
void TIBCO.EFTL.IKVMap.Remove ( String  key,
IKVMapListener  listener 
)

Remove a key-value pair from the map.

This call returns immediately; removing continues asynchronously. When the remove completes successfully, the eFTL library calls your IKVListener.OnSuccess callback.

Parameters
keyRemove the value for this key.
listenerThis listener defines callback methods for successful completion and for errors.
Exceptions
ExceptionThe connection is not open.
See Also
IKVMapListener, IConnection.CreateKVMap
void TIBCO.EFTL.IKVMap.Set ( String  key,
IMessage  value,
IKVMapListener  listener 
)

Set a key-value pair in the map, overwriting any existing value.

This call returns immediately; setting continues asynchronously. When the set completes successfully, the eFTL library calls your IKVListener.OnSuccess callback.

Parameters
keySet the value for this key.
valueSet this value for the key.
listenerThis listener defines callback methods for successful completion and for errors.
Exceptions
ExceptionThe connection is not open.
ExceptionThe message would exceed the eFTL server's maximum message size.
See Also
IKVMapListener, IConnection.CreateKVMap