summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-04-24 19:28:44 -0700
committerGrant Limberg <glimberg@gmail.com>2015-04-24 19:28:44 -0700
commitdc00ce4f44448fad1cd990d80d9755dbca770463 (patch)
tree834d768a42b861da84d8ca6fcabb9da687635045 /java/src
parent53ebd5a9a514be435b8797a4ba2599eefd7874bf (diff)
downloadinfinitytier-dc00ce4f44448fad1cd990d80d9755dbca770463.tar.gz
infinitytier-dc00ce4f44448fad1cd990d80d9755dbca770463.zip
added DataStorePutFunction implementation
updated DataStorePutListener to also have an onDelete() method
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/zerotierone/sdk/DataStorePutListener.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/java/src/com/zerotierone/sdk/DataStorePutListener.java b/java/src/com/zerotierone/sdk/DataStorePutListener.java
index 4e9404d9..bc884667 100644
--- a/java/src/com/zerotierone/sdk/DataStorePutListener.java
+++ b/java/src/com/zerotierone/sdk/DataStorePutListener.java
@@ -29,9 +29,11 @@ package com.zerotierone.sdk;
import java.nio.ByteBuffer;
public interface DataStorePutListener {
- public int onDataStorePut(Node node,
- String name,
- ByteBuffer buffer,
- long bufferSize,
- boolean secure);
+ public int onDataStorePut(
+ String name,
+ byte[] buffer,
+ boolean secure);
+
+ public int onDelete(
+ String name);
}