@Test public void AccountLock作成_更新ができること() { try { AccountLockManager.registAccountLockObjct("AccountId"); AccountLockManager.registAccountLockObjct("AccountId"); } catch (DcCoreException e) { fail(); } }
public static void registAccountLockObjct(final String accountId) { String key = CATEGORY_ACCOUNT_LOCK + accountId; Boolean success = singleton.doPutAccountLock(key, "", accountLockLifeTime); if (success) { return; } throw DcCoreException.Server.SERVER_CONNECTION_ERROR; }
AccountLockManager extends LockManager { public static void registAccountLockObjct(final String accountId) { String key = CATEGORY_ACCOUNT_LOCK + accountId; Boolean success = singleton.doPutAccountLock(key, "", accountLockLifeTime); if (success) { return; } throw DcCoreException.Server.SERVER_CONNECTION_ERROR; } }
AccountLockManager extends LockManager { public static void registAccountLockObjct(final String accountId) { String key = CATEGORY_ACCOUNT_LOCK + accountId; Boolean success = singleton.doPutAccountLock(key, "", accountLockLifeTime); if (success) { return; } throw DcCoreException.Server.SERVER_CONNECTION_ERROR; }  }
AccountLockManager extends LockManager { public static void registAccountLockObjct(final String accountId) { String key = CATEGORY_ACCOUNT_LOCK + accountId; Boolean success = singleton.doPutAccountLock(key, "", accountLockLifeTime); if (success) { return; } throw DcCoreException.Server.SERVER_CONNECTION_ERROR; }  static void registAccountLockObjct(final String accountId); static boolean hasLockObject(final String accountId); }
AccountLockManager extends LockManager { public static void registAccountLockObjct(final String accountId) { String key = CATEGORY_ACCOUNT_LOCK + accountId; Boolean success = singleton.doPutAccountLock(key, "", accountLockLifeTime); if (success) { return; } throw DcCoreException.Server.SERVER_CONNECTION_ERROR; }  static void registAccountLockObjct(final String accountId); static boolean hasLockObject(final String accountId); static final String CATEGORY_ACCOUNT_LOCK; }