In the case of special/custom needs, Hazelcast's SPI (Service Provider Interface) module allows users to develop their own distributed data structures and services.
Throughout this section, we create an example distributed counter that will be the guide to reveal the Hazelcast Services SPI usage.
Here is our counter.
public interface Counter{
int inc(int amount);
}
This counter will have the following features:
All these features are done with the steps below. Each step adds a new functionality to this counter.