IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.config
Interface ObjectGridConfiguration


public interface ObjectGridConfiguration

An ObjectGridConfiguration object can be used to override ObjectGrid plugins on the client side. The com.ibm.websphere.objectgrid.plugins.ObjectGridEventListener and the com.ibm.websphere.objectgrid.plugins.TransactionCallback Plugins can be overridden.

Since:
WAS XD 6.0.1.2, XC10
See Also:
ObjectGridEventListener, TransactionCallback

Method Summary
 void addBackingMapConfiguration(BackingMapConfiguration backingMapConfiguration)
          Add a BackingMapConfiguration to this ObjectGridConfiguration.
 void addPlugin(Plugin plugin)
          Add a Plugin to this ObjectGridConfiguration.
 List getBackingMapConfigurations()
          Get the List of BackingMapConfiguration objects that are attached to this ObjectGridConfiguration object
 String getName()
          Get the name of this ObjectGridConfiguration
 List getPlugins()
          Get the Plugins that have been attached to this ObjectGridConfiguration.
 int getTxIsolation()
          Retrieves the default transaction isolation level.
 int getTxTimeout()
          Gets the transaction timeout.
 void setBackingMapConfigurations(List backingMapConfigList)
          Set the BackingMapConfiguration objects for this ObjectGridConfiguration.
 void setPlugins(List pluginList)
          Set the Plugins for this ObjectGridConfiguration.
 void setTxIsolation(int level)
          Sets the default transaction isolation level for all sessions created by the ObjectGrid.
 void setTxTimeout(int seconds)
          Sets the transaction timeout
 

Method Detail

getName

String getName()
Get the name of this ObjectGridConfiguration

Returns:
the name of this ObjectGridConfiguration

addBackingMapConfiguration

void addBackingMapConfiguration(BackingMapConfiguration backingMapConfiguration)
Add a BackingMapConfiguration to this ObjectGridConfiguration.

Parameters:
backingMapConfiguration -

setBackingMapConfigurations

void setBackingMapConfigurations(List backingMapConfigList)
Set the BackingMapConfiguration objects for this ObjectGridConfiguration. Any BackingMapConfiguration objects that were previously attached to this ObjectGridConfiguration object will be overridden.

Parameters:
backingMapConfigList - - A List of BackingMapConfiguration objects.
See Also:
BackingMapConfiguration

getBackingMapConfigurations

List getBackingMapConfigurations()
Get the List of BackingMapConfiguration objects that are attached to this ObjectGridConfiguration object

Returns:
a List of BackingMapConfiguration objects
See Also:
BackingMapConfiguration

addPlugin

void addPlugin(Plugin plugin)
Add a Plugin to this ObjectGridConfiguration. The Plugins that can be overridden on a client-side ObjectGrid are com.ibm.websphere.objectgrid.plugins.ObjectGridEventListener and com.ibm.websphere.objectgrid.plugins.TransactionCallback.

Parameters:
plugin -
See Also:
setPlugins(List), Plugin

setPlugins

void setPlugins(List pluginList)
Set the Plugins for this ObjectGridConfiguration. Any Plugins that were previously attached to this ObjectGridConfiguration object will be overridden.

Parameters:
pluginList - - a List of Plugins
See Also:
addPlugin(Plugin), Plugin

getPlugins

List getPlugins()
Get the Plugins that have been attached to this ObjectGridConfiguration.

Returns:
a List of Plugin objects
See Also:
Plugin

setTxTimeout

void setTxTimeout(int seconds)
Sets the transaction timeout

Parameters:
seconds -
Since:
7.1.0.3
See Also:
ObjectGrid.setTxTimeout(int)

getTxTimeout

int getTxTimeout()
Gets the transaction timeout. The value is in seconds.

Returns:
the transaction timeout in seconds
Since:
7.1.0.3
See Also:
ObjectGrid.getTxTimeout()

setTxIsolation

void setTxIsolation(int level)
Sets the default transaction isolation level for all sessions created by the ObjectGrid. The constants defined in the Session interface are the possible transaction isolation levels. The default is Session.TRANSACTION_REPEATABLE_READ.

Parameters:
level - one of the following Session constants: Session.TRANSACTION_READ_UNCOMMITTED, Session.TRANSACTION_READ_COMMITTED or Session.TRANSACTION_REPEATABLE_READ or 0 if the TransactionIsolation should not be set.
Since:
7.1.1

getTxIsolation

int getTxIsolation()
Retrieves the default transaction isolation level.

Returns:
the current transaction isolation level.
Since:
7.1.1
See Also:
setTxIsolation(int)

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.