public class MultiRaftProtocol extends Object implements ProxyProtocol
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiRaftProtocol.Type
Multi-Raft protocol type.
|
| Modifier and Type | Field and Description |
|---|---|
static MultiRaftProtocol.Type |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static MultiRaftProtocolBuilder |
builder()
Returns a new multi-Raft protocol builder.
|
static MultiRaftProtocolBuilder |
builder(String group)
Returns a new multi-Raft protocol builder.
|
String |
group()
Returns the protocol partition group name.
|
static MultiRaftProtocol |
instance()
Returns an instance of the multi-Raft protocol with the default configuration.
|
<S> ProxyClient<S> |
newProxy(String primitiveName,
PrimitiveType primitiveType,
Class<S> serviceType,
ServiceConfig serviceConfig,
PartitionService partitionService)
Returns a new primitive proxy for the given partition group.
|
PrimitiveProtocol.Type |
type()
Returns the protocol type.
|
public static final MultiRaftProtocol.Type TYPE
public static MultiRaftProtocol instance()
public static MultiRaftProtocolBuilder builder()
public static MultiRaftProtocolBuilder builder(String group)
group - the partition grouppublic PrimitiveProtocol.Type type()
PrimitiveProtocoltype in interface PrimitiveProtocolpublic String group()
ProxyProtocolgroup in interface ProxyProtocolpublic <S> ProxyClient<S> newProxy(String primitiveName, PrimitiveType primitiveType, Class<S> serviceType, ServiceConfig serviceConfig, PartitionService partitionService)
ProxyProtocolnewProxy in interface ProxyProtocolprimitiveName - the primitive nameprimitiveType - the primitive typeserviceType - the primitive service typeserviceConfig - the service configurationpartitionService - the partition serviceCopyright © 2013–2018. All rights reserved.