java.lang.Object org.imgscalr.AsyncScalr.DefaultThreadFactory org.imgscalr.AsyncScalr.ServerThreadFactory
- All Implemented Interfaces:
- Enclosing class:
protected static class AsyncScalr.ServerThreadFactory
- extends AsyncScalr.DefaultThreadFactory
An extension of the
AsyncScalr.DefaultThreadFactory class that makes two changes to the execution
Threads it generations:
- Threads are set to be daemon threads instead of user threads.
- Threads execute with a priority of
Thread.MIN_PRIORITY to make them more compatible with server environment deployments.
This class is provided as a convenience for subclasses to use if they want this (common) customization to the
s used internally by
to process images, but don't want to have to write the implementation.
- Riyad Kalla (firstname.lastname@example.org)
|Methods inherited from class java.lang.Object|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Thread newThread(Runnable r)
- Overridden to set
daemon property to
true and decrease the priority of the new thread to
Thread.MIN_PRIORITY before returning it.
- Specified by:
newThread in interface
newThread in class
Copyright © 2012 The Buzz Media, LLC
. All Rights Reserved.
Launch demo modal