/** * Sets the name of the topic. * * @param name the topic name to set * @return the updated {@link TopicConfig} * @throws IllegalArgumentException if name is {@code null} or an empty string */ public TopicConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
/** * Sets the name of {@code QueryCache}. * * @param name the name of {@code QueryCache} * @return this {@code QueryCacheConfig} instance */ public QueryCacheConfig setName(String name) { checkHasText(name, "name"); this.name = name; return this; }
/** * Sets the name of the topic. * * @param name the topic name to set * @return the updated {@link TopicConfig} * @throws IllegalArgumentException if name is {@code null} or an empty string */ public TopicConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
public MadePublishableOperationFactory(String mapName, String cacheId) { checkHasText(mapName, "mapName"); checkHasText(cacheId, "cacheId"); this.cacheId = cacheId; this.mapName = mapName; }
/** * Sets the name of the CountDownLatch. * * @param name the name of the CountDownLatch * @return the updated CountDownLatchConfig * @throws IllegalArgumentException if name is {@code null} or empty */ public CountDownLatchConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
public MadePublishableOperationFactory(String mapName, String cacheId) { checkHasText(mapName, "mapName"); checkHasText(cacheId, "cacheId"); this.cacheId = cacheId; this.mapName = mapName; }
/** * Sets the name of the semaphore. * * @param name the name of the semaphore * @return the updated SemaphoreConfig * @throws IllegalArgumentException if name is {@code null} or empty */ public SemaphoreConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
/** * Sets the name of the lock. * * @param name the name of the lock * @return the updated {@link LockConfig} * @throws IllegalArgumentException if name is {@code null} or an empty string */ public LockConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
/** * Sets the cache name to which this config applies. Cache names * are also matched by pattern and event journal with cache name "default" * applies to all caches that do not have more specific event journal configs. * * @param cacheName the cache name * @return the event journal config */ public EventJournalConfig setCacheName(String cacheName) { this.cacheName = checkHasText(cacheName, "name must contain text"); return this; }
/** * Sets the full class name of the extractor in a String format, e.g. {@code com.example.car.SpeedExtractor}. * * @param extractor the full class name of the extractor in a String format * @return the updated MapAttributeConfig */ public MapAttributeConfig setExtractor(String extractor) { this.extractor = checkHasText(extractor, "Map attribute extractor must contain text"); return this; }
/** * Sets the name of the ringbuffer. * * @param name the name of the ringbuffer * @return the updated {@link RingbufferConfig} * @throws IllegalArgumentException if name is {@code null} or an empty string */ public RingbufferConfig setName(String name) { this.name = checkHasText(name, "name must contain text"); return this; }
/** * Sets the name of {@code QueryCache}. * * @param name the name of {@code QueryCache} * @return this {@code QueryCacheConfig} instance */ public QueryCacheConfig setName(String name) { checkHasText(name, "name"); this.name = name; return this; }
public HazelcastProperty(String name, String defaultValue, TimeUnit timeUnit, HazelcastProperty parent) { checkHasText(name, "The property name cannot be null or empty!"); this.name = name; this.defaultValue = defaultValue; this.timeUnit = timeUnit; this.parent = parent; }
@Override public void removeAllListeners(String mapName, String cacheId) { checkHasText(mapName, "mapName"); checkHasText(cacheId, "cacheId"); QueryCacheToListenerMapper queryCacheToListenerMap = registrations.get(mapName); if (queryCacheToListenerMap != null) { queryCacheToListenerMap.removeAllListeners(cacheId); } }
public MultiAttributeProjection(String... attributePath) { if (attributePath == null || attributePath.length == 0) { throw new IllegalArgumentException("You need to specify at least one attributePath"); } for (String path : attributePath) { checkHasText(path, "attributePath must not be null or empty"); checkFalse(path.contains("[any]"), "attributePath must not contain [any] operators"); } this.attributePaths = attributePath; }
@Override public void publish(String mapName, String cacheId, EventData eventData, int orderKey, Extractors extractors) { checkHasText(mapName, "mapName"); checkHasText(cacheId, "cacheId"); checkNotNull(eventData, "eventData cannot be null"); publishLocalEvent(mapName, cacheId, eventData, extractors); }
private static String checkName(String name) { checkHasText(name, "Map attribute name must contain text"); checkNameValid(name); checkNotQueryConstant(name); return name; }
private static String checkName(String name) { checkHasText(name, "Map attribute name must contain text"); checkNameValid(name); checkNotQueryConstant(name); return name; }
@Override public String addListener(String mapName, String cacheId, MapListener listener, EventFilter filter) { checkHasText(mapName, "mapName"); checkHasText(cacheId, "cacheId"); checkNotNull(listener, "listener cannot be null"); QueryCacheToListenerMapper queryCacheToListenerMapper = getOrPutIfAbsent(registrations, mapName, REGISTRY_CONSTRUCTOR); ListenerAdapter listenerAdaptor = createQueryCacheListenerAdaptor(listener); return queryCacheToListenerMapper.addListener(cacheId, listenerAdaptor, filter); }
@Override protected IdentifiedDataSerializable getConfig() { Preconditions.checkHasText(parameters.mapName, "Merkle tree config must define a map name"); return new MerkleTreeConfig() .setMapName(parameters.mapName) .setEnabled(parameters.enabled) .setDepth(parameters.depth); }