|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j_spaces.core.client.ReadTakeModifiers
ReadModifiers
instead
@Deprecated public class ReadTakeModifiers
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).
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 |
---|
public static final int REPEATABLE_READ
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.
public static final int DIRTY_READ
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.
public static final int EXCLUSIVE_READ_LOCK
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.
public static final int READ_COMMITTED
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
.
Constructor Detail |
---|
public ReadTakeModifiers()
Method Detail |
---|
public static boolean isDirtyRead(int mod)
mod
- a set of modifiers
mod
includes the
DIRTY_READ modifier; false otherwise.public static boolean isExclusiveReadLock(int mod)
mod
- a set of modifiers
mod
includes the
EXCLUSIVE_READ_LOCK modifier; false
otherwise.public static boolean isReadCommitted(int mod)
mod
- a set of modifiers
mod
includes the
READ_COMMITTED modifier; false otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |