Acquire Method
|
Top Previous Next |
Gets a free Tnb3270X/Tnb5250X object from a pool of objects.
VB Syntax
TNBXPOOL.Acquire([sessionId as String],[InactivityTimeout as Integer])
Remarks
Gets a Tnb3270X/Tnb5250X object from the named pool (see Id). If there's no a free object in the named pool, it creates a new one, adds it to the pool and returns the newly created object.
If the sessionId parameter is specified, the specific associated object is returned.
InactivityTimeout parameter indicates, in minutes, how much time the telnet object will remain in the pool without activity. Default timeout is 5 minutes.
To return an object to the pool you must call Release method.
|