mirror of
https://github.com/google/nomulus.git
synced 2025-05-01 12:37:52 +02:00
We create an injectable LockHandler that just calls the static Lock.executeWithLocks function. I'm not sure what's the correct place to put the LockHandler. I think model/server is only appropriate for the actual datastore lock. This is a "per request" lock, so maybe request/lock? ----------------------------- This is the initial step in adding the "lock implicitly released on request death" feature, but it's also useful on its own - easier to test Actions when we can use a fake lock. To keep this CL simple, we keep using the old Lock as is in most places. We just choose a single example to convert to LockHandler to showcase it. Converting all other uses will be in a subsequent CL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=167357564 |
||
---|---|---|
.. | ||
sheet | ||
backup_kinds.txt | ||
BigqueryPollJobActionTest.java | ||
BUILD | ||
CheckSnapshotActionTest.java | ||
DatastoreBackupInfoTest.java | ||
DatastoreBackupServiceTest.java | ||
ExportConstantsTest.java | ||
ExportDomainListsActionTest.java | ||
ExportReservedTermsActionTest.java | ||
ExportSnapshotActionTest.java | ||
ExportUtilsTest.java | ||
LoadSnapshotActionTest.java | ||
PublishDetailReportActionTest.java | ||
reporting_kinds.txt | ||
SyncGroupMembersActionTest.java | ||
UpdateSnapshotViewActionTest.java |