Giriş
Şu satırı dahil ederiz
import com.hazelcast.config.QueryCacheConfig;
Kodu şöyle
public class QueryCacheConfig implements IdentifiedDataSerializable { //By default, after reaching this minimum size, node immediately //sends buffered events to QueryCache. public static final int DEFAULT_BATCH_SIZE = 1; //By default, only buffer last DEFAULT_BUFFER_SIZE //events fired from a partition. public static final int DEFAULT_BUFFER_SIZE = 16; //Default value of delay seconds which an event wait in the buffer of a node, //before sending to QueryCache. public static final int DEFAULT_DELAY_SECONDS = 0; //By default, also cache values of entries besides keys. public static final boolean DEFAULT_INCLUDE_VALUE = true; //By default, execute an initial population query prior to creation of the QueryCache. public static final boolean DEFAULT_POPULATE = true; //Default value of coalesce property. public static final boolean DEFAULT_COALESCE = false; //Do not serialize given keys by default. public static final boolean DEFAULT_SERIALIZE_KEYS = false; //By default, hold values of entries in {@code QueryCache} as binary. public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT = InMemoryFormat.BINARY; ... }
Hiç yorum yok:
Yorum Gönder