Program guide > Access data with client applications > Use ObjectGridManager

getObjectGrid methods

Use the ObjectGridManager.getObjectGrid methods to retrieve cached instances.

Retrive a cached instance

Since the Employees ObjectGrid instance was cached by the ObjectGridManager interface, another user can access it with the following code snippet:

ObjectGrid myEmployees = oGridManager.getObjectGrid("Employees");

The following are the two getObjectGrid methods that return cached ObjectGrid instances:

You can also use the getObjectGrid method to connect to a distributed grid. See Connect to a distributed ObjectGrid for more information.

Parent topic:

Interacting with an ObjectGrid using ObjectGridManager

Related concepts

createObjectGrid methods

removeObjectGrid methods

Controlling the life cycle of an ObjectGrid

Access the ObjectGrid shard


Search Tips   |   Advanced Search