public interface _SessionOperationsNC extends Glacier2._SessionOperationsNC
Registry object or the registry client SessionManager
object.Registry,
SessionManager| Modifier and Type | Method and Description |
|---|---|
void |
allocateObjectById_async(AMD_Session_allocateObjectById __cb,
Ice.Identity id)
Allocate an object.
|
void |
allocateObjectByType_async(AMD_Session_allocateObjectByType __cb,
java.lang.String type)
Allocate an object with the given type.
|
void |
keepAlive()
Keep the session alive.
|
void |
releaseObject(Ice.Identity id)
Release an object that was allocated using allocateObjectById or
allocateObjectByType.
|
void |
setAllocationTimeout(int timeout)
Set the allocation timeout.
|
destroyvoid keepAlive()
void allocateObjectById_async(AMD_Session_allocateObjectById __cb, Ice.Identity id) throws AllocationException, ObjectNotRegisteredException
__cb - The callback object for the operation.id - The identity of the object to allocate.ObjectNotRegisteredException - Raised if the object with
the given identity is not registered with the registry.AllocationException - Raised if the object can't be
allocated.void allocateObjectByType_async(AMD_Session_allocateObjectByType __cb, java.lang.String type) throws AllocationException
__cb - The callback object for the operation.type - The type of the object.AllocationException - Raised if the object could not be allocated.void releaseObject(Ice.Identity id) throws AllocationException, ObjectNotRegisteredException
id - The identity of the object to release.ObjectNotRegisteredException - Raised if the object with
the given identity is not registered with the registry.AllocationException - Raised if the given object can't be
released. This might happen if the object isn't allocatable or
isn't allocated by the session.void setAllocationTimeout(int timeout)
timeout - The timeout in milliseconds.