Why IgniteClient doesnot support atomic sequence?

237 Views Asked by At

I am setting up JavathinClient. Need to understand how can i get hold of atomic sequence? getAtomicSeq() is accessible through ignite instance but not with IgniteClient.

private void init(IgniteClient client, String tableName) {
    ClientCache superCache = defForClient.getSuperCache()

there is no API such as atomic sequence in the IgniteClient class. so how do i acheive something like :

    IgniteAtomicSequence seq = client.atomicSequence(tableName, 0, true);
}
1

There are 1 best solutions below

2
Evgenii Zhuravlev On

At this point, thin clients don't support Atomics and DataStructures functionality. Probably this support will be added in the future. As for now, you can use Thick client, which supports all Ignite APIs: https://apacheignite.readme.io/docs/clients-vs-servers#section-configuring-clients-and-servers