Browse Source
Merge pull request #9989 from dskarzh/feature/last-activity-time-granularity
Move getCurrentTimeMillis() to abstract class
pull/10053/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
5 deletions
-
common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/DefaultTransportService.java
-
common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/TransportActivityManager.java
|
|
@ -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(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|