org.wildfly.clustering.ejb.cache.bean.MutableBeanMetaDataEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-cache Show documentation
Show all versions of wildfly-clustering-ejb-cache Show documentation
Contains code common to the wildfly-clustering-ejb-hotrod and wildfly-clustering-ejb-infinispan modules.
/*
* 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;
}
}