Skip to content

Commit e1761ea

Browse files
authored
Merge pull request #16 from iot-dsa-v2/develop
1.1.2
2 parents 94427f5 + 80b7651 commit e1761ea

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

dslink.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dslink-java-v2-restadapter",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Java DSA to REST adpater DSLink",
55
"main": "bin/dslink-java-v2-restadapter",
66
"configs": {

src/main/java/org/iot/dsa/dslink/restadapter/SubscriptionRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.iot.dsa.util.DSException;
2121
import okhttp3.Response;
2222

23-
public class SubscriptionRule extends DSLogger implements OutboundSubscribeHandler {
23+
public class SubscriptionRule extends DSLogger implements OutboundSubscribeHandler, UpdateSender {
2424

2525
private AbstractRuleNode node;
2626
private OutboundStream stream;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.iot.dsa.dslink.restadapter;
2+
3+
import java.util.Queue;
4+
5+
public interface UpdateSender {
6+
7+
public int getMaxBatchSize();
8+
9+
public Queue<SubUpdate> sendBatchUpdate(Queue<SubUpdate> updates);
10+
11+
}

src/main/java/org/iot/dsa/dslink/restadapter/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static void storeInBuffer(String subId, SubUpdate update) {
104104
// return true;
105105
// }
106106

107-
public static boolean processBuffer(String subId, SubscriptionRule subRule) {
107+
public static boolean processBuffer(String subId, UpdateSender subRule) {
108108
if (buffer == null) {
109109
return true;
110110
}

0 commit comments

Comments
 (0)