Class InfinispanBeanEntry<I>
- java.lang.Object
-
- org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanEntry<I>
-
- Type Parameters:
G- the group identifier type
- All Implemented Interfaces:
BeanEntry<I>,ImmutableBeanEntry<I>
public class InfinispanBeanEntry<I> extends Object implements BeanEntry<I>
The cache entry for a bean.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description InfinispanBeanEntry(String beanName, I groupId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBeanName()Returns the name of this beanIgetGroupId()Returns the group identifier associated with the bean entryInstantgetLastAccessedTime()Returns the last time this bean was accessed.voidsetLastAccessedTime(Instant time)Updates the last time this bean was accessed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ejb.infinispan.ImmutableBeanEntry
isExpired
-
-
-
-
Method Detail
-
getBeanName
public String getBeanName()
Description copied from interface:ImmutableBeanEntryReturns the name of this bean- Specified by:
getBeanNamein interfaceImmutableBeanEntry<I>- Returns:
- a bean name
-
getGroupId
public I getGroupId()
Description copied from interface:ImmutableBeanEntryReturns the group identifier associated with the bean entry- Specified by:
getGroupIdin interfaceImmutableBeanEntry<I>- Returns:
- a group identifier
-
getLastAccessedTime
public Instant getLastAccessedTime()
Description copied from interface:ImmutableBeanEntryReturns the last time this bean was accessed.- Specified by:
getLastAccessedTimein interfaceImmutableBeanEntry<I>- Returns:
- an instant in time
-
setLastAccessedTime
public void setLastAccessedTime(Instant time)
Description copied from interface:BeanEntryUpdates the last time this bean was accessed.- Specified by:
setLastAccessedTimein interfaceBeanEntry<I>- Parameters:
time- an instant in time
-
-