org.terracotta.collections
Interface MapSizeListener


public interface MapSizeListener

Instances of MapSizeListener can be registered with ClusteredMap instances to receive events when either the local (in-heap) or global size of the map changes.

Author:
Chris Dennis

Method Summary
 void localSizeChanged(int delta)
          Fired on a change in the in-heap size.
 void sizeChanged(int delta)
          Fired on a change in overall map size.
 

Method Detail

localSizeChanged

void localSizeChanged(int delta)
Fired on a change in the in-heap size.

Local size changes can be caused by either user modification of the map, or by internal process removing or adding existing mapping to/from the local heap.

Parameters:
delta - amount by which the size changed

sizeChanged

void sizeChanged(int delta)
Fired on a change in overall map size.

Overall size changes are generally triggered by user modifications of the map.

Parameters:
delta - amount by which the size changed


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.