public class NullProgressListener extends AbstractProgressListener
getUpdateInterval()
returns Long.MAX_VALUE
so that
the runtime object never bothers calling.taskSize, updateInterval, updateProp
Constructor and Description |
---|
NullProgressListener() |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Called by the runtime object when the task finishes.
|
long |
getUpdateInterval()
Gets the update interval.
|
void |
start()
Called by the runtime object when the task starts.
|
void |
update(long numPixels)
Called by the runtime object at update intervals as specified by
either
JiffleProgressListener.setUpdateInterval(long) or JiffleProgressListener.setUpdateInterval(double) . |
setTaskSize, setUpdateInterval, setUpdateInterval
public void start()
JiffleProgressListener
public void update(long numPixels)
JiffleProgressListener
JiffleProgressListener.setUpdateInterval(long)
or JiffleProgressListener.setUpdateInterval(double)
.
It is important to keep the amount of processing done in this method to a minimum.
numPixels
- number of pixels processedpublic void finish()
JiffleProgressListener
public long getUpdateInterval()
getUpdateInterval
in interface JiffleProgressListener
getUpdateInterval
in class AbstractProgressListener
Long.MAX_VALUE
which effectively means
"don't bother calling me".Copyright © 2006–2018 GeoSolutions. All rights reserved.