use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString 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.KeyStringValueString 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.KeyStringValueString in project rocketmq-externals by apache.
the class RedisSourceTaskTest method getRedisEvent.
private RedisEvent getRedisEvent() {
RedisEvent redisEvent = new RedisEvent();
KeyStringValueString event = new KeyStringValueString();
event.setKey("key".getBytes());
event.setValue("value".getBytes());
event.setValueRdbType(RDB_TYPE_STRING);
redisEvent.setEvent(event);
redisEvent.setReplId("replId");
redisEvent.setReplOffset(6000L);
redisEvent.setStreamDB(0);
return redisEvent;
}
use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString 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