aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/jabber/ws/WSKeepAlive.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-24 15:06:58 +0300
committerGravatar Vitaly Takmazov2016-06-24 15:06:58 +0300
commit095dee1388919eac7d3a3fa6fc93767f82c16365 (patch)
tree094ecad722a7a99ecbbabfb370fbdf51d80e8f11 /src/main/java/com/juick/jabber/ws/WSKeepAlive.java
parent27e6c9c5edb2642c31735fcb0effb9acd82bd4af (diff)
spring-jdbc
Diffstat (limited to 'src/main/java/com/juick/jabber/ws/WSKeepAlive.java')
-rw-r--r--src/main/java/com/juick/jabber/ws/WSKeepAlive.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/juick/jabber/ws/WSKeepAlive.java b/src/main/java/com/juick/jabber/ws/WSKeepAlive.java
index 2deef594..f253439d 100644
--- a/src/main/java/com/juick/jabber/ws/WSKeepAlive.java
+++ b/src/main/java/com/juick/jabber/ws/WSKeepAlive.java
@@ -1,8 +1,9 @@
package com.juick.jabber.ws;
+import org.springframework.jdbc.core.JdbcTemplate;
+
import java.io.PrintWriter;
import java.nio.ByteBuffer;
-import java.sql.Connection;
import java.util.Iterator;
/**
@@ -11,11 +12,11 @@ import java.util.Iterator;
*/
public class WSKeepAlive implements Runnable {
- Connection sql;
+ JdbcTemplate sql;
ByteBuffer pingBytes;
ByteBuffer closeBytes;
- public WSKeepAlive(Connection sql) {
+ public WSKeepAlive(JdbcTemplate sql) {
this.sql = sql;
//pingBytes = ByteBuffer.allocate(2);