From e2023722ce23ee9860373454e98af37fbaa4350a Mon Sep 17 00:00:00 2001 From: Dmytro Skarzhynets Date: Thu, 23 Nov 2023 15:39:51 +0200 Subject: [PATCH] [WIP] Remove session activity data class --- .../service/SessionActivityData.java | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/SessionActivityData.java diff --git a/common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/SessionActivityData.java b/common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/SessionActivityData.java deleted file mode 100644 index 3e0be50ce6..0000000000 --- a/common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/SessionActivityData.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright © 2016-2024 The Thingsboard Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.thingsboard.server.common.transport.service; - -import lombok.Data; -import org.thingsboard.server.gen.transport.TransportProtos; - -/** - * Created by ashvayka on 15.10.18. - */ -@Data -public class SessionActivityData { - - private volatile TransportProtos.SessionInfoProto sessionInfo; - private volatile long lastActivityTime; - private volatile long lastReportedActivityTime; - - SessionActivityData(TransportProtos.SessionInfoProto sessionInfo) { - this.sessionInfo = sessionInfo; - } - - void updateLastActivityTime() { - this.lastActivityTime = System.currentTimeMillis(); - } - -}