public class CrdtProtocol extends Object implements GossipProtocol, CounterProtocol, NavigableSetProtocol, ValueProtocol
| Modifier and Type | Class and Description |
|---|---|
static class |
CrdtProtocol.Type
CRDT protocol type.
|
| Modifier and Type | Field and Description |
|---|---|
static CrdtProtocol.Type |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static CrdtProtocolBuilder |
builder()
Returns a new CRDT protocol builder.
|
static CrdtProtocol |
instance()
Returns an instance of the CRDT protocol with the default configuration.
|
CounterDelegate |
newCounterDelegate(String name,
PrimitiveManagementService managementService)
Returns a new counter delegate.
|
<E> NavigableSetDelegate<E> |
newNavigableSetDelegate(String name,
Serializer serializer,
PrimitiveManagementService managementService)
Returns a new set delegate.
|
<E> SetDelegate<E> |
newSetDelegate(String name,
Serializer serializer,
PrimitiveManagementService managementService)
Returns a new set delegate.
|
<E> SortedSetDelegate<E> |
newSortedSetDelegate(String name,
Serializer serializer,
PrimitiveManagementService managementService)
Returns a new set delegate.
|
ValueDelegate |
newValueDelegate(String name,
Serializer serializer,
PrimitiveManagementService managementService)
Returns a new value delegate.
|
PrimitiveProtocol.Type |
type()
Returns the protocol type.
|
public static final CrdtProtocol.Type TYPE
public static CrdtProtocol instance()
public static CrdtProtocolBuilder builder()
public PrimitiveProtocol.Type type()
PrimitiveProtocoltype in interface PrimitiveProtocolpublic CounterDelegate newCounterDelegate(String name, PrimitiveManagementService managementService)
CounterProtocolnewCounterDelegate in interface CounterProtocolname - the counter namemanagementService - the primitive management servicepublic <E> SetDelegate<E> newSetDelegate(String name, Serializer serializer, PrimitiveManagementService managementService)
SetProtocolnewSetDelegate in interface SetProtocolE - the set element typename - the set nameserializer - the set element serializermanagementService - the primitive management servicepublic <E> SortedSetDelegate<E> newSortedSetDelegate(String name, Serializer serializer, PrimitiveManagementService managementService)
SortedSetProtocolnewSortedSetDelegate in interface SortedSetProtocolE - the set element typename - the set nameserializer - the set element serializermanagementService - the primitive management servicepublic <E> NavigableSetDelegate<E> newNavigableSetDelegate(String name, Serializer serializer, PrimitiveManagementService managementService)
NavigableSetProtocolnewNavigableSetDelegate in interface NavigableSetProtocolE - the set element typename - the set nameserializer - the set element serializermanagementService - the primitive management servicepublic ValueDelegate newValueDelegate(String name, Serializer serializer, PrimitiveManagementService managementService)
ValueProtocolnewValueDelegate in interface ValueProtocolname - the value nameserializer - the value serializermanagementService - the primitive management serviceCopyright © 2013–2018. All rights reserved.