Skip to content

Releases: SOBotics/Redunda-lib-java

1.0.0

Choose a tag to compare

@FelixSFD FelixSFD released this 30 May 08:40
  • #10 Get location from Redunda

0.3 - Redunda Data Storage

Pre-release

Choose a tag to compare

@FelixSFD FelixSFD released this 22 Mar 11:41

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

0.2.0 Pre-release
Pre-release

Choose a tag to compare

@FelixSFD FelixSFD released this 14 Mar 09:11
  • supports version parameter #2
  • can now be deployed as release build #1

0.1.0

0.1.0 Pre-release
Pre-release

Choose a tag to compare

@FelixSFD FelixSFD released this 13 Mar 15:09

The first release with a basic connection to Redunda.