4A Server -
2.0
|
Class manages documents locks. More...
Public Member Functions | |
LockMaster () | |
synchronized Padlock | getSuggestionLock (Integer docId) |
synchronized Padlock | getSuggReqLock (Integer docId) |
synchronized Padlock | getDocumentLock (Integer docId) |
Padlock | getSessionsLock () |
Private Member Functions | |
synchronized Padlock | makeSuggestionsPadlock (Integer docId) |
synchronized Padlock | makeSuggReqPadlock (Integer docId) |
synchronized Padlock | makeDocumentPadlock (Integer docId) |
Private Attributes | |
ArrayList< Padlock > | suggestionsLocks |
ArrayList< Padlock > | suggReqLocks |
ArrayList< Padlock > | changesDocLocks |
Padlock | sessionsLock |
Class manages documents locks.
Class manages documents locks.
Definition at line 30 of file LockMaster.java.
cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.LockMaster | ( | ) |
Constructor that inicialize locks arrays.
Definition at line 47 of file LockMaster.java.
synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getDocumentLock | ( | Integer | docId | ) |
Method which provides access to document locks, when the lock for the document does not exist, method create it.
docId | Id of document for which lock is made available |
Definition at line 162 of file LockMaster.java.
Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSessionsLock | ( | ) |
Method which provides access to dsessions lock, when the lock for the sessions does not exist, method create it.
Definition at line 181 of file LockMaster.java.
synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSuggestionLock | ( | Integer | docId | ) |
Method which provides access to suggestions locks, when the lock for the document does not exist, method create it.
docId | Id of document for which lock is made available |
Definition at line 82 of file LockMaster.java.
synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSuggReqLock | ( | Integer | docId | ) |
Method which provides access to suggestion request locks, when the lock for the document does not exist, method create it.
docId | Id of document for which lock is made available |
Definition at line 122 of file LockMaster.java.
|
private |
The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.
docId | Id of document for which lock is made available |
Definition at line 141 of file LockMaster.java.
|
private |
The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.
docId | Id of document for which lock is made available |
Definition at line 61 of file LockMaster.java.
|
private |
The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.
docId | Id of document for which lock is made available |
Definition at line 101 of file LockMaster.java.
|
private |
Array of created locks for changes
Definition at line 39 of file LockMaster.java.
|
private |
Lock that locks sessions list for change
Definition at line 42 of file LockMaster.java.
|
private |
Array of created locks for suggestions
Definition at line 33 of file LockMaster.java.
|
private |
Array of created locks for suggestions requests
Definition at line 36 of file LockMaster.java.