group persistence modules (#2890)
* move security content from spring-security-rest-full * swagger update * move query language to new module * rename spring-security-rest-full to spring-rest-full * group persistence modules
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
dbeb5f8ba4
commit
26c50909be
@@ -0,0 +1,19 @@
|
||||
package com.baeldung;
|
||||
|
||||
/**
|
||||
* Created by johnson on 3/9/17.
|
||||
*/
|
||||
public class CustomMessage {
|
||||
private String message;
|
||||
|
||||
public CustomMessage() {
|
||||
}
|
||||
|
||||
public CustomMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.baeldung;
|
||||
|
||||
public class Ledger {
|
||||
|
||||
public Ledger() {
|
||||
}
|
||||
|
||||
public Ledger(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.redisson.api.annotation.REntity;
|
||||
import org.redisson.api.annotation.RId;
|
||||
|
||||
/**
|
||||
* Created by johnson on 3/9/17.
|
||||
*/
|
||||
@REntity
|
||||
public class LedgerLiveObject {
|
||||
@RId
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.baeldung;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by johnson on 3/9/17.
|
||||
*/
|
||||
public class LedgerServiceImpl implements LedgerServiceInterface {
|
||||
|
||||
String[] returnArray = {"entry1","entry2","entry3"};
|
||||
|
||||
@Override
|
||||
public List<String> getEntries(int count) {
|
||||
return Arrays.asList(returnArray);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.baeldung;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by johnson on 3/9/17.
|
||||
*/
|
||||
public interface LedgerServiceInterface {
|
||||
List<String> getEntries(int count);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"singleServerConfig": {
|
||||
"idleConnectionTimeout": 10000,
|
||||
"pingTimeout": 1000,
|
||||
"connectTimeout": 10000,
|
||||
"timeout": 3000,
|
||||
"retryAttempts": 3,
|
||||
"retryInterval": 1500,
|
||||
"reconnectionTimeout": 3000,
|
||||
"failedAttempts": 3,
|
||||
"password": null,
|
||||
"subscriptionsPerConnection": 5,
|
||||
"clientName": null,
|
||||
"address": "redis://127.0.0.1:6379",
|
||||
"subscriptionConnectionMinimumIdleSize": 1,
|
||||
"subscriptionConnectionPoolSize": 50,
|
||||
"connectionMinimumIdleSize": 10,
|
||||
"connectionPoolSize": 64,
|
||||
"database": 0,
|
||||
"dnsMonitoring": false,
|
||||
"dnsMonitoringInterval": 5000
|
||||
},
|
||||
"threads": 0,
|
||||
"nettyThreads": 0,
|
||||
"codec": null,
|
||||
"useLinuxNativeEpoll": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
singleServerConfig:
|
||||
idleConnectionTimeout: 10000
|
||||
pingTimeout: 1000
|
||||
connectTimeout: 10000
|
||||
timeout: 3000
|
||||
retryAttempts: 3
|
||||
retryInterval: 1500
|
||||
reconnectionTimeout: 3000
|
||||
failedAttempts: 3
|
||||
password: null
|
||||
subscriptionsPerConnection: 5
|
||||
clientName: null
|
||||
address: "redis://127.0.0.1:6379"
|
||||
subscriptionConnectionMinimumIdleSize: 1
|
||||
subscriptionConnectionPoolSize: 50
|
||||
connectionMinimumIdleSize: 10
|
||||
connectionPoolSize: 64
|
||||
database: 0
|
||||
dnsMonitoring: false
|
||||
dnsMonitoringInterval: 5000
|
||||
threads: 0
|
||||
nettyThreads: 0
|
||||
codec: !<org.redisson.codec.JsonJacksonCodec> {}
|
||||
useLinuxNativeEpoll: false
|
||||
Reference in New Issue
Block a user