Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
309e9d16
Commit
309e9d16
authored
Sep 21, 2023
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
マスターデータ取得失敗時のリトライを2回から3回に変更
parent
c46a24b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+2
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
309e9d16
...
...
@@ -168,13 +168,13 @@ import jp.agentec.adf.util.DateTimeUtil;
// CMSでメンテナンスされるHACCPマスタデータをアプリから取得できるようにJSONファイルを生成する。
String
fetchDate
=
null
;
//失敗時、3回リトライ処理
for
(
int
i
=
0
;
i
<
3
;
i
++)
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
try
{
fetchDate
=
masterDataLogic
.
initializeMasterData
(
ABVDataCache
.
getInstance
().
tempMasterDataFetchDate
,
i
);
break
;
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
"initializeMasterData Exception"
,
e
);
if
(
i
==
2
)
{
//3回目に
例外処理投げる。
if
(
i
==
3
)
{
//3回目のリトライ失敗時、
例外処理投げる。
throw
e
;
}
else
{
Thread
.
sleep
(
500
);
//0.5秒間隔でリトライ処理を実行
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment