A session object is used by IceGrid clients to allocate and
release objects. Client sessions are either created with the
Registry object or the registry client ::Glacier2::SessionManager
object.
Allocate an object with the given type. Depending on the
allocation timeout, this operation can block until an object
becomes available or until the timeout is reached.