This strategy ignores the value set by {@link Builder#setImageQueueDepth(int)}. * Only one image will be delivered for analysis at a time. If more images are produced * while that image is being analyzed, they will be dropped and not queued for delivery. * Once the image being analyzed is closed by calling {@link ImageProxy#close()}, the * next latest image will be delivered. * *
Internally this strategy may make use of an internal {@link Executor} to receive * and drop images from the producer. A performance-tuned executor will be created * internally unless one is explicitly provided by * {@link Builder#setBackgroundExecutor(Executor)}. In order to * ensure smooth operation of this backpressure strategy, any user supplied * {@link Executor} must be able to quickly respond to tasks posted to it, so setting * the executor manually should only be considered in advanced use cases. * * @see Builder#setBackgroundExecutor(Executor) !*/ public static final int STRATEGY_KEEP_ONLY_LATEST = 0;