com.j_spaces.core.client
Class ReadTakeModifiers

java.lang.Object
  extended by com.j_spaces.core.client.ReadTakeModifiers

Deprecated. use ReadModifiers instead

@Deprecated
public class ReadTakeModifiers
extends Object

The ReadTakeModifiers class provides static methods and constants to decode Read/Take type modifiers. The sets of modifiers are represented as integers with distinct bit positions, representing different modifiers.

You could use bitwise or operator "|" and union different modifiers.
Note: REPEATABLE_READ, DIRTY_READ and READ_COMMITTED are mutually exclusive. EXCLUSIVE_READ_LOCK can be joined with any of them.

These modifiers are settable either at the proxy level IJSpace#setReadTakeModifiers(int) or at the operation level.

The default behavior is that of the REPEATABLE_READ modifier (as defined by the JavaSpace spec).

See Also:
IJSpace.setReadTakeModifiers(int)

Field Summary
static int DIRTY_READ
          Deprecated. The DIRTY_READ modifier allows for non-transactional read operations to have full visibility of the entities in the space.
static int EXCLUSIVE_READ_LOCK
          Deprecated. The EXCLUSIVE_READ_LOCK modifier allows for read operations to have exclusive visibility of entities that are not write-locked or exclusively-locked by active transactions.
static int READ_COMMITTED
          Deprecated. The READ_COMMITTED modifier allows for read operations to have visibility of currently committed entities, regardless of the fact that those entities may be updated (with a newer version) or taken under an uncommitted transaction.
static int REPEATABLE_READ
          Deprecated. The REPEATABLE_READ modifier allows for read operations to have visibility of entities that are not write-locked or exclusively-locked by active transactions.
 
Constructor Summary
ReadTakeModifiers()
          Deprecated.  
 
Method Summary
static boolean isDirtyRead(int mod)
          Deprecated. Checks if the DIRTY_READ bit was set for this modifier.
static boolean isExclusiveReadLock(int mod)
          Deprecated. Checks if the EXCLUSIVE_READ_LOCK bit was set for this modifier.
static boolean isReadCommitted(int mod)
          Deprecated. Checks if the READ_COMMITTED bit was set for this modifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPEATABLE_READ

public static final int REPEATABLE_READ
Deprecated. 
The REPEATABLE_READ modifier allows for read operations to have visibility of entities that are not write-locked or exclusively-locked by active transactions. This is the default JavaSpace isolation-level.

See Also:
Constant Field Values

DIRTY_READ

public static final int DIRTY_READ
Deprecated. 
The DIRTY_READ modifier allows for non-transactional read operations to have full visibility of the entities in the space. This is opposed to the JavaSpace's spec which specifies that a read operation performed under a null transaction can only access those entities that are not write-locked by active transactions.

See Also:
Constant Field Values

EXCLUSIVE_READ_LOCK

public static final int EXCLUSIVE_READ_LOCK
Deprecated. 
The EXCLUSIVE_READ_LOCK modifier allows for read operations to have exclusive visibility of entities that are not write-locked or exclusively-locked by active transactions. Once exclusively read, no other transactional operation is allowed. This is opposed to the JavaSpace's spec which allows additional transactional read access of those entities.

This supports the ability to perform reads in a "SELECT FOR UPDATE" fashion.

Since:
6.0
See Also:
Constant Field Values

READ_COMMITTED

public static final int READ_COMMITTED
Deprecated. 
The READ_COMMITTED modifier allows for read operations to have visibility of currently committed entities, regardless of the fact that those entities may be updated (with a newer version) or taken under an uncommitted transaction. This is opposed to the default space isolation-level (derived from JavaSpace's spec) which is REPEATABLE_READ.

Since:
6.0
See Also:
Constant Field Values
Constructor Detail

ReadTakeModifiers

public ReadTakeModifiers()
Deprecated. 
Method Detail

isDirtyRead

public static boolean isDirtyRead(int mod)
Deprecated. 
Checks if the DIRTY_READ bit was set for this modifier.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the DIRTY_READ modifier; false otherwise.

isExclusiveReadLock

public static boolean isExclusiveReadLock(int mod)
Deprecated. 
Checks if the EXCLUSIVE_READ_LOCK bit was set for this modifier.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the EXCLUSIVE_READ_LOCK modifier; false otherwise.

isReadCommitted

public static boolean isReadCommitted(int mod)
Deprecated. 
Checks if the READ_COMMITTED bit was set for this modifier.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the READ_COMMITTED modifier; false otherwise.