use of com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair in project rocketmq-externals by apache.
the class RedisEventTest method getKeyValuePair.
private KeyValuePair getKeyValuePair() {
KeyValuePair pair = new KeyStringValueString();
pair.setKey("key".getBytes());
pair.setValue("value".getBytes());
return pair;
}
use of com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair in project rocketmq-externals by apache.
the class ListenerTest method testEventListener.
@Test
public void testEventListener() {
EventListener eventListener = new RedisEventListener(this.config, processor);
KeyValuePair pair = new KeyStringValueString();
eventListener.onEvent(null, pair);
}
use of com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair in project rocketmq-externals by apache.
the class ProcessorTest method getKVCommandPair.
private KeyValuePair getKVCommandPair() {
KeyValuePair event = new KeyStringValueSet();
event.setValueRdbType(RDB_TYPE_SET);
event.setKey("mySet".getBytes());
Set<byte[]> values = new HashSet<>();
values.add("myValue".getBytes());
values.add("myValue2".getBytes());
event.setValue(values);
return event;
}
use of com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair in project rocketmq-externals by apache.
the class ProcessorTest method getKeyValuePair.
private KeyValuePair getKeyValuePair() {
KeyValuePair pair = new KeyStringValueString();
pair.setKey("key".getBytes());
pair.setValue("value".getBytes());
return pair;
}
Aggregations