|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jboss.managed.ManagedLock
@Immutable public final class ManagedLock

The ManagedSession class is a JBoss managed object of a ModeShape lock.
| Field Summary | |
|---|---|
static Comparator<ManagedLock> |
SORT_BY_OWNER
A sorter for when locks need to be sorted by owner. |
| Constructor Summary | |
|---|---|
ManagedLock(String workspaceName,
boolean sessionBased,
String sessionId,
org.joda.time.DateTime expiration,
String id,
String owner,
boolean deep)
Constructs a managed object for a ModeShape lock. |
|
| Method Summary | |
|---|---|
org.joda.time.DateTime |
getExpiration()
Obtains the lock's expiration time. |
String |
getId()
Obtains the lock's identifier. |
String |
getOwner()
Obtains the lock's owner. |
String |
getSessionId()
Obtains the session's unique identifier. |
String |
getWorkspaceName()
Obtains the lock's workspace name. |
boolean |
isDeep()
Indicates if this lock is a deep lock. |
boolean |
isSessionBased()
Indicates if this lock is a session-based lock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Comparator<ManagedLock> SORT_BY_OWNER
| Constructor Detail |
|---|
public ManagedLock(String workspaceName,
boolean sessionBased,
String sessionId,
org.joda.time.DateTime expiration,
String id,
String owner,
boolean deep)
workspaceName - the name of the lock's workspace (never null and never empty)sessionBased - the flag indicating if this lock is session-basedsessionId - the session ID of this lock (never null and never empty)expiration - the lock expiration time (never null)id - the lock ID (never null and never empty)owner - the owner of the lock (never null or empty)deep - the flag indicating if this is a deep lock| Method Detail |
|---|
public org.joda.time.DateTime getExpiration()
null)public String getId()
null and never empty)public String getOwner()
null and never empty)public String getSessionId()
null and never empty)public String getWorkspaceName()
null and never empty)public boolean isDeep()
true if a deep lockpublic boolean isSessionBased()
true if a session-based lock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||