All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.ejb.cache.bean.MutableBeanMetaDataEntry Maven / Gradle / Ivy

Go to download

Contains code common to the wildfly-clustering-ejb-hotrod and wildfly-clustering-ejb-infinispan modules.

There is a newer version: 34.0.1.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.ejb.cache.bean;

import java.time.Instant;

import org.wildfly.clustering.server.offset.OffsetValue;
import org.wildfly.clustering.server.offset.Value;

/**
 * @author Paul Ferraro
 */
public class MutableBeanMetaDataEntry implements BeanMetaDataEntry {

    private final ImmutableBeanMetaDataEntry entry;
    private final OffsetValue lastAccess;

    public MutableBeanMetaDataEntry(ImmutableBeanMetaDataEntry entry, OffsetValue lastAccess) {
        this.entry = entry;
        this.lastAccess = lastAccess;
    }

    @Override
    public String getName() {
        return this.entry.getName();
    }

    @Override
    public K getGroupId() {
        return this.entry.getGroupId();
    }

    @Override
    public Value getLastAccess() {
        return this.lastAccess;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy