You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/02/08 19:01:34 UTC

[ignite-teamcity-bot] branch master updated: Remove unused class

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 1918240  Remove unused class
1918240 is described below

commit 19182405f42eeab524c0d5c981e9761a413a9aa0
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Fri Feb 8 22:01:30 2019 +0300

    Remove unused class
---
 .../org/apache/ignite/ci/analysis/Expirable.java   | 54 ----------------------
 .../org/apache/ignite/ci/util/CacheUpdateUtil.java |  1 -
 2 files changed, 55 deletions(-)

diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/analysis/Expirable.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/analysis/Expirable.java
deleted file mode 100644
index 61d2646..0000000
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/analysis/Expirable.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.apache.ignite.ci.analysis;
-
-import java.util.concurrent.TimeUnit;
-import org.apache.ignite.ci.db.Persisted;
-
-/**
- * Wrapper for timestamped entry to be reloaded later.
- */
-public class Expirable<D> {
-    private final long ts;
-    private final D data;
-
-    public Expirable(D data) {
-        this(System.currentTimeMillis(), data);
-    }
-
-    public Expirable(long ts, D data) {
-        this.ts = ts;
-        this.data = data;
-    }
-
-    public long getTs() {
-        return ts;
-    }
-
-    public D getData() {
-        return data;
-    }
-
-    public long getAgeMs() {
-        return System.currentTimeMillis() - ts;
-    }
-
-    public boolean isAgeLessThanSecs(int seconds) {
-        return getAgeMs() < TimeUnit.SECONDS.toMillis(seconds);
-    }
-}
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/util/CacheUpdateUtil.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/util/CacheUpdateUtil.java
index 9c7f385..ac3d15b 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/util/CacheUpdateUtil.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/util/CacheUpdateUtil.java
@@ -23,7 +23,6 @@ import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Function;
 import javax.annotation.Nullable;
 import org.apache.ignite.IgniteCache;
-import org.apache.ignite.ci.analysis.Expirable;
 
 /**
  * Cache reloading from real source stuff