protected void pushState ( final Cache < ? , ? > cache ) throws Exception { DataContainer < ? , ? > dc = cache . getAdvancedCache ( ) . getDataContainer ( ) ; dc . forEach ( entry -> { MarshallableEntry me = ctx . getMarshallableEntryFactory ( ) . create ( entry . getKey ( ) , entry . getValue ( ) , entry . getMetadata ( ) , entry . getExpiryTime ( ) , entry . getLastUsed ( ) ) ; write ( me ) ; } ) ; }
Pushes the state of a specific cache by reading the cache s data and putting in the cache store .