added DataStorePutFunction implementation

updated  DataStorePutListener to also have an onDelete() method
This commit is contained in:
Grant Limberg 2015-04-24 19:28:44 -07:00
parent 53ebd5a9a5
commit dc00ce4f44
2 changed files with 64 additions and 7 deletions

View file

@ -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);
}