public class AccumulatorInfo extends Object implements Portable
Accumulator.
This metadata is used in communications between: node <--> node and client <--> node.
QueryCacheConfig| Constructor and Description |
|---|
AccumulatorInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSize() |
int |
getBufferSize() |
String |
getCacheId() |
int |
getClassId()
Returns class identifier for this portable class.
|
long |
getDelaySeconds() |
int |
getFactoryId()
Returns PortableFactory ID for this portable class
|
String |
getMapName() |
Predicate |
getPredicate() |
boolean |
isCoalesce() |
boolean |
isIncludeValue() |
boolean |
isPopulate() |
boolean |
isPublishable() |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
void |
setPublishable(boolean publishable) |
static AccumulatorInfo |
toAccumulatorInfo(QueryCacheConfig config,
String mapName,
String cacheId,
Predicate predicate) |
static AccumulatorInfo |
toAccumulatorInfo(String mapName,
String cacheId,
Predicate predicate,
int batchSize,
int bufferSize,
long delaySeconds,
boolean includeValue,
boolean populate,
boolean coalesce) |
String |
toString() |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
public static AccumulatorInfo toAccumulatorInfo(QueryCacheConfig config, String mapName, String cacheId, Predicate predicate)
public static AccumulatorInfo toAccumulatorInfo(String mapName, String cacheId, Predicate predicate, int batchSize, int bufferSize, long delaySeconds, boolean includeValue, boolean populate, boolean coalesce)
public int getBatchSize()
public int getBufferSize()
public long getDelaySeconds()
public boolean isIncludeValue()
public String getMapName()
public String getCacheId()
public Predicate getPredicate()
public boolean isPublishable()
public boolean isPopulate()
public void setPublishable(boolean publishable)
public boolean isCoalesce()
public int getFactoryId()
PortablegetFactoryId in interface Portablepublic int getClassId()
PortablegetClassId in interface Portablepublic void writePortable(PortableWriter writer) throws IOException
PortablewritePortable in interface Portablewriter - PortableWriterIOExceptionpublic void readPortable(PortableReader reader) throws IOException
PortablereadPortable in interface Portablereader - PortableReaderIOExceptionCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.