| java.lang.Object org.jboss.ejb.plugins.AbstractPassivationJob
AbstractPassivationJob | abstract public class AbstractPassivationJob implements Executable(Code) | | Abstract class for passivation jobs.
Subclasses should implement
AbstractPassivationJob.execute synchronizing it in some way because
the execute method is normally called in the passivation thread,
while the cancel method is normally called from another thread.
To avoid that subclasses override methods of this class without
make them synchronized (except execute of course), they're declared final.
author: Simone Bordet author: Scott.Stark@jboss.org version: $Revision: 57209 $ |
Method Summary | |
final synchronized void | cancel() Mark this job for cancellation. | final synchronized void | executed() | final EnterpriseContext | getEnterpriseContext() Returns the EnterpriseContext associated with this passivation job,
so the bean that will be passivated. | final Object | getKey() (Bill Burke) We can't rely on the EnterpriseContext to provide PassivationJob
with a valid key because it may get freed to the InstancePool, then
reused before the PassivationJob executes. | final synchronized boolean | isCancelled() | final synchronized boolean | isExecuted() |
isCancelled | protected boolean isCancelled(Code) | | |
isExecuted | protected boolean isExecuted(Code) | | |
getEnterpriseContext | final EnterpriseContext getEnterpriseContext()(Code) | | Returns the EnterpriseContext associated with this passivation job,
so the bean that will be passivated.
No need to synchronize access to this method, since the returned
reference is immutable
|
getKey | final Object getKey()(Code) | | (Bill Burke) We can't rely on the EnterpriseContext to provide PassivationJob
with a valid key because it may get freed to the InstancePool, then
reused before the PassivationJob executes.
|
|
|