Skip to content

Commit 57c3454

Browse files
committed
Updating as per PR comments and also removing automatically added in author comments
1 parent d3d55ee commit 57c3454

File tree

5 files changed

+2
-17
lines changed

5 files changed

+2
-17
lines changed

micro-elasticache/src/main/java/com/aol/micro/server/elasticache/ConfigureElasticache.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.aol.micro.server.elasticache;
22

3-
/**
4-
* Created by gordonmorrow on 4/24/17.
5-
*/
3+
64

75
import lombok.extern.slf4j.Slf4j;
86
import net.spy.memcached.*;
@@ -67,7 +65,6 @@ public MemcachedClient createMemcachedClient() throws IOException {
6765
return new MemcachedClient(new InetSocketAddress(hostname, port));
6866
} catch (IOException e) {
6967
log.error("Could not initilise connection to elasticache cluster", e);
70-
e.printStackTrace();
7168
return null;
7269
}
7370

micro-elasticache/src/main/java/com/aol/micro/server/elasticache/DistributedCacheManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.aol.micro.server.elasticache;
22
import java.util.Optional;
3-
/**
4-
* Created by gordonmorrow on 5/3/17.
5-
*/
3+
64
public interface DistributedCacheManager<V> {
75
void setConnectionTested(boolean result);
86
boolean isAvailable();

micro-elasticache/src/main/java/com/aol/micro/server/elasticache/ElasticachePlugin.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import com.aol.cyclops.data.collections.extensions.persistent.PSetX;
44
import com.aol.micro.server.Plugin;
55

6-
/**
7-
* Created by gordonmorrow on 5/3/17.
8-
*/
96
public class ElasticachePlugin implements Plugin {
107

118
@Override

micro-elasticache/src/main/java/com/aol/micro/server/elasticache/TransientElasticacheDataConnection.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
import net.spy.memcached.MemcachedClient;
77
import lombok.extern.slf4j.Slf4j;
88

9-
/**
10-
* Created by gordonmorrow on 5/3/17.
11-
*/
129

1310
@Slf4j
1411
public class TransientElasticacheDataConnection<V> implements DistributedCacheManager<V> {
@@ -42,7 +39,6 @@ public boolean add(final String key, int exp, final Object value) {
4239
.get();
4340
} catch (final Exception e) {
4441
log.warn("memcache set: {}", e.getMessage());
45-
System.out.println(e.getMessage());
4642
}
4743
} while (!success && tryCount < maxTry);
4844

micro-elasticache/src/test/java/com/aol/micros/server/elasticache/TransientElasticacheDataConnectionTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.aol.micros.server.elasticache;
22

3-
/**
4-
* Created by gordonmorrow on 5/9/17.
5-
*/
63
import static org.mockito.Mockito.mock;
74
import static org.mockito.Mockito.stub;
85
import static org.junit.Assert.assertEquals;

0 commit comments

Comments
 (0)