|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.concurrency.locking.ReferenceEntityLockService
Field Summary |
Fields inherited from interface org.jasig.portal.concurrency.IEntityLockService |
READ_LOCK, WRITE_LOCK |
Constructor Summary | |
ReferenceEntityLockService()
ReferenceEntityLockingService constructor comment. |
Method Summary | |
void |
convert(IEntityLock lock,
int newType)
Attempts to change the lock's lockType to newType . |
void |
convert(IEntityLock lock,
int newType,
int newDuration)
Attempts to change the lock's lockType to newType . |
boolean |
existsInStore(IEntityLock lock)
Answer if this IEntityLock exists in the store. |
boolean |
isValid(IEntityLock lock)
Answers if this IEntityLock represents a lock that is still
good. |
IEntityLock |
newLock(java.lang.Class entityType,
java.lang.String entityKey,
int lockType,
java.lang.String owner)
Returns a lock for the entity, lock type and owner if no conflicting locks exist. |
IEntityLock |
newLock(java.lang.Class entityType,
java.lang.String entityKey,
int lockType,
java.lang.String owner,
int durationSecs)
Returns a lock for the entity, lock type and owner if no conflicting locks exist. |
IEntityLock |
newLock(EntityIdentifier entityID,
int lockType,
java.lang.String owner)
Returns a lock for the entity, lock type and owner if no conflicting locks exist. |
IEntityLock |
newLock(EntityIdentifier entityID,
int lockType,
java.lang.String owner,
int durationSecs)
Returns a lock for the entity, lock type and owner if no conflicting locks exist. |
void |
release(IEntityLock lock)
Releases the IEntityLock . |
void |
renew(IEntityLock lock)
Extends the expiration time of the lock by some service-defined increment. |
void |
renew(IEntityLock lock,
int duration)
Extends the expiration time of the lock by some service-defined increment. |
static IEntityLockService |
singleton()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReferenceEntityLockService() throws LockingException
Method Detail |
public void convert(IEntityLock lock, int newType) throws LockingException
lockType
to newType
.
convert
in interface IEntityLockService
lock
- IEntityLocknewType
- int
LockingException
public void convert(IEntityLock lock, int newType, int newDuration) throws LockingException
lockType
to newType
.
convert
in interface IEntityLockService
lock
- IEntityLocknewType
- intnewDuration
- int
LockingException
public boolean existsInStore(IEntityLock lock) throws LockingException
IEntityLock
exists in the store.
existsInStore
in interface IEntityLockService
lock
-
LockingException
public boolean isValid(IEntityLock lock) throws LockingException
IEntityLock
represents a lock that is still
good. To be valid, a lock must exist in the underlying store and be
unexpired.
isValid
in interface IEntityLockService
lock
- IEntityLock
LockingException
public IEntityLock newLock(java.lang.Class entityType, java.lang.String entityKey, int lockType, java.lang.String owner) throws LockingException
newLock
in interface IEntityLockService
entityType
- entityKey
- lockType
- owner
-
LockingException
public IEntityLock newLock(java.lang.Class entityType, java.lang.String entityKey, int lockType, java.lang.String owner, int durationSecs) throws LockingException
newLock
in interface IEntityLockService
entityType
- entityKey
- lockType
- owner
- durationSecs
-
LockingException
public IEntityLock newLock(EntityIdentifier entityID, int lockType, java.lang.String owner) throws LockingException
newLock
in interface IEntityLockService
entityID
- org.jasig.portal.EntityIdentifierlockType
- intowner
- String
LockingException
public IEntityLock newLock(EntityIdentifier entityID, int lockType, java.lang.String owner, int durationSecs) throws LockingException
newLock
in interface IEntityLockService
entityID
- org.jasig.portal.EntityIdentifierlockType
- intowner
- StringdurationSecs
- int
LockingException
public void release(IEntityLock lock) throws LockingException
IEntityLock
.
release
in interface IEntityLockService
lock
- IEntityLock
LockingException
public void renew(IEntityLock lock) throws LockingException
renew
in interface IEntityLockService
lock
- IEntityLock
LockingException
public void renew(IEntityLock lock, int duration) throws LockingException
renew
in interface IEntityLockService
lock
- IEntityLockduration
-
LockingException
public static IEntityLockService singleton() throws LockingException
LockingException
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |