BBjEnterpriseNamespace::removeValue

Description

In BBj 13.0 and higher, this method removes an object from this BBjEnterpriseNamespace.

Syntax

Return Value

Method

void

removeValue(string name)

void

removeValue(string name, long timeoutMillis)

Parameters

Variable

Description

name

Specifies the name of the named object.

timeoutMillis

Time in milliseconds to wait if requested Object is currently locked.

Return Value

None.

Remarks

This is equivalent to removeValue(name, 20). If the requested Object is currently locked by another BBjEnterpriseNamespace then this version of removeValue() will wait up to timeoutMillis milliseconds for the lock to release. If the lock is still in effect after that time, then an error LOCKED will be generated.

Example

rem 'host and authentication information

host$="server"
port = 2552
user$="user"
password$="password"
namespace! = bbjapi().getBBjEnterpriseNamespace(host$,port,"test",user$,password$)

rem 'set Values of the namespace
namespace!.setValue("aKey","100")
namespace!.setValue("bKey","200")

rem 'get Keys and print size
keys! = namespace!.getKeys()

rem 'Remove the values of aKey
namespace!.removeValue("aKey")
print "namespace! size is " + STR(keys!.size())
print "bKey is " + namespace!.getValue("bKey")

See Also

BBjAPI

BBjEnterpriseNamespace

BBjNamespace

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.