Skip to content

Releases: SOBotics/Redunda-lib-java

1.0.0

30 May 08:40
Compare
Choose a tag to compare
  • #10 Get location from Redunda

0.3 - Redunda Data Storage

22 Mar 11:41
Compare
Choose a tag to compare
Pre-release

Introduces Redunda's data storage ( #7 )

With the data storage, your bot can sync files across multiple instances. This can for example be useful for lists of opted-in users.

How to sync files

Automatic synchronization

Get the DataService

You can easily get the DataService with the same API-key as PingService:

DataService redundaData = redunda.buildDataService();

Track files for syncing

Each file that should be automatically synchronized needs to be tracked:

redundaData.trackFile("./myFile");

Note: You should not use absolute paths and a path should not contain the String _slash_.

Start synchronizing

The automatic sync can be started like this:

redundaData.syncAndStart();

This will call syncFiles() synchronously (for proper initialization of your bot) and then start the background thread. Alternatively, you can use start() if you don't need the files on launch.

If you don't want to sync automatically in background, you can just call syncFiles().

Upload and download files manually

If you don't want to sync automatically, you can call the methods for uploading and downloading by yourself. They are the same as syncFiles() uses. Please have a look at the documentation for more information.

0.2.0

14 Mar 09:11
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release
  • supports version parameter #2
  • can now be deployed as release build #1

0.1.0

13 Mar 15:09
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

The first release with a basic connection to Redunda.