@@ -69,7 +69,8 @@ public class MParticleIdentityClientImpl extends MParticleBaseClientImpl impleme
69
69
public final String LOGIN_CALL = "login" ;
70
70
public final String IDENTIFY_CALL = "identify" ;
71
71
final String IDENTITY_HEADER_TIMEOUT = "X-MP-Max-Age" ;
72
- static Long maxAgeTimeForIdentityCache = 0L ;
72
+ private Long maxAgeTimeForIdentityCache = 0L ;
73
+ private Long maxAgeTime = 86400L ;
73
74
Long identityCacheTime = 0L ;
74
75
HashMap <String , IdentityHttpResponse > identityCacheArray = new HashMap <>();
75
76
@@ -87,7 +88,6 @@ public IdentityHttpResponse login(IdentityApiRequest request) throws JSONExcepti
87
88
if (existsResponse != null ) {
88
89
return existsResponse ;
89
90
}
90
- Long maxAgeTime =86400L ;
91
91
Logger .verbose ("Identity login request: " + jsonObject .toString ());
92
92
MPConnection connection = getPostConnection (LOGIN_PATH , jsonObject .toString ());
93
93
String url = connection .getURL ().toString ();
@@ -127,7 +127,7 @@ public IdentityHttpResponse identify(IdentityApiRequest request) throws JSONExce
127
127
return existsResponse ;
128
128
}
129
129
JSONObject jsonObject = getStateJson (request );
130
- Long maxAgeTime = 86400L ;
130
+
131
131
Logger .verbose ("Identity identify request: \n " + jsonObject .toString ());
132
132
MPConnection connection = getPostConnection (IDENTIFY_PATH , jsonObject .toString ());
133
133
String url = connection .getURL ().toString ();
0 commit comments