Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.statetransfer
Class StateChunk

java.lang.Object
  extended by org.infinispan.statetransfer.StateChunk

public class StateChunk
extends Object

Encapsulates a chunk of cache entries that belong to the same segment. This representation is suitable for sending it to another cache during state transfer.

Since:
5.2
Author:
anistor@redhat.com

Nested Class Summary
static class StateChunk.Externalizer
           
 
Constructor Summary
StateChunk(int segmentId, Collection<InternalCacheEntry> cacheEntries, boolean isLastChunk)
           
 
Method Summary
 Collection<InternalCacheEntry> getCacheEntries()
           
 int getSegmentId()
           
 boolean isLastChunk()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateChunk

public StateChunk(int segmentId,
                  Collection<InternalCacheEntry> cacheEntries,
                  boolean isLastChunk)
Method Detail

getSegmentId

public int getSegmentId()

getCacheEntries

public Collection<InternalCacheEntry> getCacheEntries()

isLastChunk

public boolean isLastChunk()

toString

public String toString()
Overrides:
toString in class Object

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.