|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for Concurrency Control service.
Nested Class Summary | |
static interface |
ConcurrencyManager.ResourceProvider
This interfaces is the callback used by the concurrency manager to obtain a resource from its identifier on readIntention or writeIntention calls. |
Method Summary | |
void |
abort(java.lang.Object ctx)
This method allows to release the resources allocated in a given context. |
void |
begin(java.lang.Object ctx)
This method records the start of an execution context. |
void |
finalize(java.lang.Object ctx)
This method marks the end of accesses made by the execution context. |
java.lang.Object |
readIntention(java.lang.Object ctx,
java.lang.Object resourceId,
java.lang.Object lockHints,
ConcurrencyManager.ResourceProvider resProv,
java.lang.Object resourceHints)
This method records an access intention to a data object in read mode. |
boolean |
validate(java.lang.Object ctx)
This method requests the validation of accesses made by the context. |
java.lang.Object |
writeIntention(java.lang.Object ctx,
java.lang.Object resourceId,
java.lang.Object lockHints,
ConcurrencyManager.ResourceProvider resProv,
java.lang.Object resourceHints)
This method records an access intention to a data object in write mode. |
Method Detail |
public void begin(java.lang.Object ctx)
ctx
- is the contextpublic boolean validate(java.lang.Object ctx)
public void finalize(java.lang.Object ctx)
public void abort(java.lang.Object ctx)
public java.lang.Object readIntention(java.lang.Object ctx, java.lang.Object resourceId, java.lang.Object lockHints, ConcurrencyManager.ResourceProvider resProv, java.lang.Object resourceHints) throws ConcurrencyException
ctx
- is an identifier of the execution context. It can be a
transaction handle.resourceId
- is the resource identifier (Object used for
synchronization and equals)lockHints
- permit to take smaller lock than on the resource globalyresProv
- is used to retrieve the resource. If not resource provider
is specified (null value), then the method returns a null value.resourceHints
- is a hints helping the ResourceProvider to provide
the resource corresponding to the identier
ConcurrencyException
- if there is a concurrency problem. In this
last case that means the context should be cancelled.public java.lang.Object writeIntention(java.lang.Object ctx, java.lang.Object resourceId, java.lang.Object lockHints, ConcurrencyManager.ResourceProvider resProv, java.lang.Object resourceHints) throws ConcurrencyException
ctx
- is an identifier of the execution context. It can be a
transaction handle.resourceId
- is the resource identifier (Object used for
synchronization and equals)lockHints
- permit to take smaller lock than on the resource globalyresProv
- is used to retrieve the resource. If not resource provider
is specified (null value), then the method returns a null value.resourceHints
- is a hints helping the ResourceProvider to provide
the resource corresponding to the identier
ConcurrencyException
- if there is a concurrency problem. In this
last case that means the context should be cancelled.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |