Class TrackedFileHandleFactory

All Implemented Interfaces:

public class TrackedFileHandleFactory extends Object implements FileHandleFactory
Simple least-recently-opened "cache" for FileHandles, to avoid running up against ulimits. Will probably not achieve satisfactory results if the number of file handles concurrently in active use exceeds capacity. Note that returned FileHandles may be closed asynchronously by the factory.

TODO: Consider adding a lookup to enable handle sharing. Not necessary for current usage.