Package org.infinispan.statetransfer
Class StateChunk
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
StateChunk.Externalizer
-
Constructor Summary
Constructors Constructor Description StateChunk(int segmentId, Collection<InternalCacheEntry> cacheEntries, boolean isLastChunk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<InternalCacheEntry>
getCacheEntries()
int
getSegmentId()
boolean
isLastChunk()
String
toString()
-
-
-
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()
-
-