org.sape.carbon.core.component.lifecycle
Interface DefaultLifecycleInterceptorConfiguration

All Superinterfaces:
Configuration

public interface DefaultLifecycleInterceptorConfiguration
extends Configuration

This configuration represents the configuration for the Default implementation of the Lifecycle Interceptor. It configures the timeouts associated with this intercepts locking capabilities.

Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:13 $)
Author:
Douglas Voet, Aug 16, 2002

Field Summary
static long BlockedCallTimeout
          Default time to block: 2000.
static long DestroyerThreadTimeout
          Default time to block: 2000.
 
Method Summary
 long getBlockedCallTimeout()
          Gets the timeout for a block after a call to resume.
 long getDestroyerThreadTimeout()
          Gets the timeout for a block after a call to destroy.
 void setBlockedCallTimeout(long milliseconds)
          Sets the time lifecycle interceptor should wait after a call to resume before it gives up and interrupts the thread to avoid deadlock.
 void setDestroyerThreadTimeout(long milliseconds)
          Sets the time the lifecycle interceptor should wait for a component to be destroyed before it gives up and iterrupts the thread to avoid deadlock.
 
Methods inherited from interface org.sape.carbon.core.config.Configuration
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly
 

Field Detail

BlockedCallTimeout

public static final long BlockedCallTimeout
Default time to block: 2000.

See Also:
Constant Field Values

DestroyerThreadTimeout

public static final long DestroyerThreadTimeout
Default time to block: 2000.

See Also:
Constant Field Values
Method Detail

getBlockedCallTimeout

public long getBlockedCallTimeout()
Gets the timeout for a block after a call to resume.

Returns:
time to block after a resume call

setBlockedCallTimeout

public void setBlockedCallTimeout(long milliseconds)
Sets the time lifecycle interceptor should wait after a call to resume before it gives up and interrupts the thread to avoid deadlock.

Parameters:
milliseconds - time to block after a resume call

getDestroyerThreadTimeout

public long getDestroyerThreadTimeout()
Gets the timeout for a block after a call to destroy.

Returns:
time to block after a destroy call

setDestroyerThreadTimeout

public void setDestroyerThreadTimeout(long milliseconds)
Sets the time the lifecycle interceptor should wait for a component to be destroyed before it gives up and iterrupts the thread to avoid deadlock.

Parameters:
milliseconds - time to block after a destroy call


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.