@Internal public abstract class ElementByteSizeObserver extends java.lang.Object implements java.util.Observer
Constructor and Description |
---|
ElementByteSizeObserver() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Advances the observer to the next element.
|
boolean |
getIsLazy()
Returns whether byte counting for the current element is lazy, that is, whether the observer
gets notified of the element's byte count only as element's pieces are being processed or
iterated over.
|
protected abstract void |
reportElementSize(long elementByteSize)
Called to report element byte size.
|
void |
setLazy()
Sets byte counting for the current element as lazy.
|
void |
setScalingFactor(double scalingFactor)
Sets a multiplier to use on observed sizes.
|
void |
update(java.lang.Object obj)
Updates the observer with a context specified, but without an instance of the Observable.
|
void |
update(java.util.Observable obs,
java.lang.Object obj) |
protected abstract void reportElementSize(long elementByteSize)
public void setLazy()
public boolean getIsLazy()
public void update(java.lang.Object obj)
public void setScalingFactor(double scalingFactor)
public void update(java.util.Observable obs, java.lang.Object obj)
update
in interface java.util.Observer
public void advance()