| java.lang.Object org.hsqldb.lib.HsqlThreadFactory
HsqlThreadFactory | class HsqlThreadFactory implements ThreadFactory(Code) | | The default HSQLDB thread factory implementation. This factory can be
used to wrap other thread factories using the setImpl method, but, by
default simply produces new, vanilla thread objects constructed with
the supplied runnable object.
author: boucherb@users version: 1.7.2 since: 1.7.2 |
Constructor Summary | |
public | HsqlThreadFactory() Constructs a new HsqlThreadFactory that uses itself as the factory
implementation. | public | HsqlThreadFactory(ThreadFactory f) Constructs a new HsqlThreadFactory whose retrieved threads come from the
specified ThreadFactory object or from this factory implementation, if'
the specified implementation is null. |
factory | protected ThreadFactory factory(Code) | | The factory implementation. Typically, this will be the
HsqlThreadFactory object itself.
|
HsqlThreadFactory | public HsqlThreadFactory()(Code) | | Constructs a new HsqlThreadFactory that uses itself as the factory
implementation.
|
HsqlThreadFactory | public HsqlThreadFactory(ThreadFactory f)(Code) | | Constructs a new HsqlThreadFactory whose retrieved threads come from the
specified ThreadFactory object or from this factory implementation, if'
the specified implementation is null.
Parameters: f - the factory implementation this factory uses |
getImpl | public synchronized ThreadFactory getImpl()(Code) | | Retrieves the factory implementation that this factory is using
to produce threads.
the factory implementation that this factory is using to producethreads. |
newThread | public Thread newThread(Runnable r)(Code) | | Retreives a thread instance for running the specified Runnable
Parameters: r - The runnable that the retrieved thread handles the requested thread inatance |
setImpl | public synchronized ThreadFactory setImpl(ThreadFactory f)(Code) | | Sets the factory implementation that this factory will use to
produce threads. If the specified argument, f, is null, then
this factory uses itself as the implementation.
Parameters: f - the factory implementation that this factory will useto produce threads the previously installed factory implementation |
|
|