Class DecoratedStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>>
java.lang.Object
org.wildfly.clustering.server.service.DecoratedService
org.jboss.as.ejb3.component.stateful.cache.DecoratedStatefulSessionBeanCache<K,V>
- All Implemented Interfaces:
AutoCloseable,StatefulSessionBeanCache<K,,V> org.wildfly.clustering.ejb.bean.BeanStatistics,org.wildfly.clustering.ejb.remote.AffinitySupport<K>,org.wildfly.clustering.server.service.Service
- Direct Known Subclasses:
SuspendableStatefulSessionBeanCache
public class DecoratedStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>>
extends org.wildfly.clustering.server.service.DecoratedService
implements StatefulSessionBeanCache<K,V>
A stateful session bean cache decorator.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.as.ejb3.component.stateful.cache.StatefulSessionBeanCache
CURRENT_GROUP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDecoratedStatefulSessionBeanCache(StatefulSessionBeanCache<K, V> cache, org.wildfly.clustering.server.service.Service service) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Creates and caches a stateful bean using a generated identifier.Returns the stateful bean with the specified identifier, or null if no such bean exists.intReturns the identifier factory of this cache.intorg.jboss.ejb.client.Affinityorg.jboss.ejb.client.AffinitygetWeakAffinity(K id) booleanisRemotable(Throwable throwable) Checks whether the suppliedThrowableis remotable - meaning it can be safely sent to the client over the wire.Methods inherited from class org.wildfly.clustering.server.service.DecoratedService
isStarted, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.service.Service
isStarted, start, stop
-
Constructor Details
-
DecoratedStatefulSessionBeanCache
-
DecoratedStatefulSessionBeanCache
protected DecoratedStatefulSessionBeanCache(StatefulSessionBeanCache<K, V> cache, org.wildfly.clustering.server.service.Service service)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>>
-
getActiveCount
public int getActiveCount()- Specified by:
getActiveCountin interfaceorg.wildfly.clustering.ejb.bean.BeanStatistics
-
getPassiveCount
public int getPassiveCount()- Specified by:
getPassiveCountin interfaceorg.wildfly.clustering.ejb.bean.BeanStatistics
-
getStrongAffinity
public org.jboss.ejb.client.Affinity getStrongAffinity()- Specified by:
getStrongAffinityin interfaceorg.wildfly.clustering.ejb.remote.AffinitySupport<K>
-
getWeakAffinity
- Specified by:
getWeakAffinityin interfaceorg.wildfly.clustering.ejb.remote.AffinitySupport<K>
-
createStatefulSessionBean
Description copied from interface:StatefulSessionBeanCacheCreates and caches a stateful bean using a generated identifier.- Specified by:
createStatefulSessionBeanin interfaceStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>> - Returns:
- the newly created session bean
-
findStatefulSessionBean
Description copied from interface:StatefulSessionBeanCacheReturns the stateful bean with the specified identifier, or null if no such bean exists.- Specified by:
findStatefulSessionBeanin interfaceStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>> - Returns:
- an existing stateful bean, or null if none was found
-
getIdentifierFactory
Description copied from interface:StatefulSessionBeanCacheReturns the identifier factory of this cache.- Specified by:
getIdentifierFactoryin interfaceStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>> - Returns:
- an identifier factory
-
isRemotable
Description copied from interface:StatefulSessionBeanCacheChecks whether the suppliedThrowableis remotable - meaning it can be safely sent to the client over the wire.- Specified by:
isRemotablein interfaceStatefulSessionBeanCache<K,V extends StatefulSessionBeanInstance<K>>
-