Package io.atomix.primitive.protocol
Interface ProxyProtocol
- All Superinterfaces:
PrimitiveProtocol
- All Known Subinterfaces:
LogProtocol
public interface ProxyProtocol extends PrimitiveProtocol
State machine replication-based primitive protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.atomix.primitive.protocol.PrimitiveProtocol
PrimitiveProtocol.Type<C extends PrimitiveProtocolConfig<C>> -
Method Summary
Modifier and Type Method Description Stringgroup()Returns the protocol partition group name.<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.
-
Method Details
-
group
String group()Returns the protocol partition group name.- Returns:
- the protocol partition group name
-
newProxy
<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.- Parameters:
primitiveName- the primitive nameprimitiveType- the primitive typeserviceType- the primitive service typeserviceConfig- the service configurationpartitionService- the partition service- Returns:
- the proxy for the given partition group
-