|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for Concurrency Control service.
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 resource,
java.lang.Object lockHints)
This method records an access intention to a data object in read mode. |
boolean |
validate(java.lang.Object ctx)
This method requests the validation os accesses made by the context. |
java.lang.Object |
writeIntention(java.lang.Object ctx,
java.lang.Object resource,
java.lang.Object lockHints)
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 resource, java.lang.Object lockHints) throws ConcurrencyException
resource
- is the resource or it identifier (Object used for
synchronization)ctx
- is an identifier of the execution context. It can be a
transaction handle.lockHints
- permit to take smaller lock than on the resource globaly
ConcurrencyException
- if the no resource are available for
this resource identifer or 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 resource, java.lang.Object lockHints) throws ConcurrencyException
resource
- is the resource or its identifierctx
- is an identifier of the execution context. It can be a
transaction handle.lockHints
- permit to take smaller lock than on the resource globaly
ConcurrencyException
- if the no resource are available for
this resource identifer or 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 |