public class ScopedConfigurationParameters extends ConfigurationParameters
ConfigurationParameters
except an instance of BoundSchedulable
that
uses this parameters object may not access the heap and one that uses
the super type may.Constructor and Description |
---|
ScopedConfigurationParameters(int messageLength,
int stackTraceDepth,
int classNameLength,
int methodNameLength,
int fileNameLength,
long[] sizes)
Similar to
ConfigurationParameters.ConfigurationParameters(int,
int, int, int, int, long[]) , except the receiver may not use the heap. |
Modifier and Type | Method and Description |
---|---|
static ConfigurationParameters |
getDefault()
Set the parameters object to be used when none is provided for an
instance of
Schedulable . |
ReleaseRunner |
getDefaultRunner()
Gets the system default release runner.
|
boolean |
mayUseHeap()
Determines whether or not this
schedulable may use the heap. |
static void |
setDefault(ConfigurationParameters config)
Set the parameters object to be used when none is provided for an
instance of
Schedulable . |
static void |
setDefaultRunner(ReleaseRunner runner)
Sets the system default release runner.
|
getClassNameLength, getFileNameLength, getMessageLength, getMethodNameLength, getSizes, getStackTraceDepth
public ScopedConfigurationParameters(int messageLength, int stackTraceDepth, int classNameLength, int methodNameLength, int fileNameLength, long[] sizes) throws StaticIllegalStateException
ConfigurationParameters.ConfigurationParameters(int,
int, int, int, int, long[])
, except the receiver may not use the heap.StaticIllegalStateException
- when the current memory context is
a heap memory.public static void setDefault(ConfigurationParameters config)
Schedulable
. Setting to
null
restores the default values.StaticIllegalArgumentException
- when config
supports heap memory allocation.config
- the new default parameter object.public static ConfigurationParameters getDefault()
Schedulable
.public static void setDefaultRunner(ReleaseRunner runner) throws StaticIllegalArgumentException
StaticIllegalArgumentException
- when runner is not allocated
in immortal memory or its configuration parameters
are not ScopedConfigurationParameters
.runner
- The runner to be used when none is set. When
null
, the default release runner is set to the
original system default.public boolean mayUseHeap()
ConfigurationParameters
schedulable
may use the heap.mayUseHeap
in class ConfigurationParameters
true
only when this configuration may allocate
on the heap and may enter the Heap
.public ReleaseRunner getDefaultRunner()
getDefaultRunner
in class ConfigurationParameters
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.