Merge pull request #9989 from dskarzh/feature/last-activity-time-granularity
Move getCurrentTimeMillis() to abstract class
This commit is contained in:
commit
0d77e4f897
@ -775,10 +775,6 @@ public class DefaultTransportService extends TransportActivityManager implements
|
|||||||
onActivity(toSessionId(sessionInfo), getCurrentTimeMillis());
|
onActivity(toSessionId(sessionInfo), getCurrentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
||||||
long getCurrentTimeMillis() {
|
|
||||||
return System.currentTimeMillis();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void lifecycleEvent(TenantId tenantId, DeviceId deviceId, ComponentLifecycleEvent eventType, boolean success, Throwable error) {
|
public void lifecycleEvent(TenantId tenantId, DeviceId deviceId, ComponentLifecycleEvent eventType, boolean success, Throwable error) {
|
||||||
ToCoreMsg msg = ToCoreMsg.newBuilder()
|
ToCoreMsg msg = ToCoreMsg.newBuilder()
|
||||||
|
|||||||
@ -142,7 +142,7 @@ public abstract class TransportActivityManager extends AbstractActivityManager<U
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
long getCurrentTimeMillis() {
|
protected long getCurrentTimeMillis() {
|
||||||
return System.currentTimeMillis();
|
return System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user