List of usage examples for org.springframework.data.redis.support.collections RedisProperties put
@Override
public synchronized Object put(Object key, Object value)
From source file:org.springframework.integration.redis.outbound.RedisCollectionPopulatingMessageHandler.java
private void handleProperties(final RedisProperties properties, Message<?> message) { final Object payload = message.getPayload(); if (this.extractPayloadElements && payload instanceof Properties) { this.processInPipeline(new PipelineCallback() { public void process() { properties.putAll((Properties) payload); }/*from w w w. j av a2 s. co m*/ }); } else { Object key = this.assertMapEntry(message, true); properties.put(key, payload); } }
From source file:org.springframework.integration.redis.outbound.RedisStoreWritingMessageHandler.java
private void writeToProperties(final RedisProperties properties, Message<?> message) { final Object payload = message.getPayload(); if (this.extractPayloadElements && payload instanceof Properties) { this.processInPipeline(new PipelineCallback() { public void process() { properties.putAll((Properties) payload); }/*from ww w . j a va2 s. c om*/ }); } else { Assert.isInstanceOf(String.class, payload, "For property, payload must be a String."); Object key = this.determineMapKey(message, true); properties.put(key, payload); } }