Class MultiPrimaryProtocol

java.lang.Object
io.atomix.protocols.backup.MultiPrimaryProtocol
All Implemented Interfaces:
io.atomix.primitive.protocol.PrimitiveProtocol, io.atomix.primitive.protocol.ProxyProtocol

public class MultiPrimaryProtocol
extends java.lang.Object
implements io.atomix.primitive.protocol.ProxyProtocol
Multi-primary protocol.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  MultiPrimaryProtocol.Type
    Multi-primary protocol type.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static MultiPrimaryProtocol.Type TYPE  
  • Method Summary

    Modifier and Type Method Description
    static MultiPrimaryProtocolBuilder builder()
    Returns a new multi-primary protocol builder.
    static MultiPrimaryProtocolBuilder builder​(java.lang.String group)
    Returns a new multi-primary protocol builder for the given group.
    java.lang.String group()  
    static MultiPrimaryProtocol instance()
    Returns an instance of the multi-primary protocol with the default configuration.
    <S> io.atomix.primitive.proxy.ProxyClient<S> newProxy​(java.lang.String primitiveName, io.atomix.primitive.PrimitiveType primitiveType, java.lang.Class<S> serviceType, io.atomix.primitive.service.ServiceConfig serviceConfig, io.atomix.primitive.partition.PartitionService partitionService)  
    java.lang.String toString()  
    io.atomix.primitive.protocol.PrimitiveProtocol.Type type()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Method Details

    • instance

      public static MultiPrimaryProtocol instance()
      Returns an instance of the multi-primary protocol with the default configuration.
      Returns:
      an instance of the multi-primary protocol with the default configuration
    • builder

      public static MultiPrimaryProtocolBuilder builder()
      Returns a new multi-primary protocol builder.
      Returns:
      a new multi-primary protocol builder
    • builder

      public static MultiPrimaryProtocolBuilder builder​(java.lang.String group)
      Returns a new multi-primary protocol builder for the given group.
      Parameters:
      group - the partition group
      Returns:
      a new multi-primary protocol builder for the given group
    • type

      public io.atomix.primitive.protocol.PrimitiveProtocol.Type type()
      Specified by:
      type in interface io.atomix.primitive.protocol.PrimitiveProtocol
    • group

      public java.lang.String group()
      Specified by:
      group in interface io.atomix.primitive.protocol.ProxyProtocol
    • newProxy

      public <S> io.atomix.primitive.proxy.ProxyClient<S> newProxy​(java.lang.String primitiveName, io.atomix.primitive.PrimitiveType primitiveType, java.lang.Class<S> serviceType, io.atomix.primitive.service.ServiceConfig serviceConfig, io.atomix.primitive.partition.PartitionService partitionService)
      Specified by:
      newProxy in interface io.atomix.primitive.protocol.ProxyProtocol
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object