이 콘텐츠는 선택한 언어로 제공되지 않습니다.
23.2.2. Optimize state replication
As the replication process is a costly operation, you can optimize this behavior by optionally implementing the org.jboss.ejb3.cache.Optimized interface in your bean class:
public interface Optimized { boolean isModified(); }
public interface Optimized
{
boolean isModified();
}
Before replicating your bean, the container will check if your bean implements the
Optimized
interface. If this is the case, the container calls the isModified()
method and will only replicate the bean when the method returns true
. If the bean has not been modified (or not enough to require replication, depending on your own preferences), you can return false
and the replication would not occur.