ObjectGridManager インターフェースを使用した ObjectGrid インスタンスの削除

ObjectGrid インスタンスをキャッシュから除去するには、2 つの異なる removeObjectGrid メソッドを使用できます。

ObjectGrid インスタンスの除去

キャッシュから ObjectGrid インスタンスを除去するには、 removeObjectGrid メソッドの 1 つを使用します。ObjectGridManager インターフェースは、 除去されたインスタンスの参照は保持しません。 2 つの除去メソッドが存在します。 1 つのメソッドはブール値パラメーターを取ります。ブール値パラメーターが true に 設定されている場合、destroy メソッドが ObjectGrid に対して呼び出されます。 ObjectGrid に対して呼び出された destroy メソッド は、ObjectGrid をシャットダウンし、ObjectGrid が使用している リソースをすべて解放します。2 つの removeObjectGrid メソッドの使用方法の 説明は以下のとおりです。

/**
 * Remove an ObjectGrid from the cache of ObjectGrid instances
 *
 * @param objectGridName the name of the ObjectGrid instance to remove
 * from the cache
 *
 * @throws ObjectGridException if an ObjectGrid with the objectGridName
 * was not found in the cache
 */
public void removeObjectGrid(String objectGridName) throws ObjectGridException;

/**
 * Remove an ObjectGrid from the cache of ObjectGrid instances and
 * destroy its associated resources
 *
 * @param objectGridName the name of the ObjectGrid instance to remove
 * from the cache
 *
 * @param destroy destroy the objectgrid instance and its associated
 * resources
 *
 * @throws ObjectGridException if an ObjectGrid with the objectGridName
 * was not found in the cache
 */
public void removeObjectGrid(String objectGridName, boolean destroy) 
	throws ObjectGridException;