Class EtcdRegistry

  • All Implemented Interfaces:
    io.gridgo.framework.support.Registry

    public class EtcdRegistry
    extends java.lang.Object
    implements io.gridgo.framework.support.Registry
    • Field Summary

      • Fields inherited from interface io.gridgo.framework.support.Registry

        REGISTRY_SUB_PATTERN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T convertAnswer​(java.lang.Class<T> type, java.lang.Object answer)  
      java.lang.Object lookup​(java.lang.String name)  
      io.gridgo.framework.support.Registry register​(java.lang.String name, @NonNull java.lang.Object answer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.gridgo.framework.support.Registry

        lookup, lookupMandatory, lookupMandatory, substituteRegistries, substituteRegistriesRecursive, toString
    • Constructor Detail

      • EtcdRegistry

        public EtcdRegistry()
      • EtcdRegistry

        public EtcdRegistry​(java.lang.String... endpoints)
      • EtcdRegistry

        public EtcdRegistry​(io.etcd.jetcd.Client client)
    • Method Detail

      • convertAnswer

        public <T> T convertAnswer​(java.lang.Class<T> type,
                                   java.lang.Object answer)
        Specified by:
        convertAnswer in interface io.gridgo.framework.support.Registry
      • lookup

        public java.lang.Object lookup​(java.lang.String name)
        Specified by:
        lookup in interface io.gridgo.framework.support.Registry
      • register

        public io.gridgo.framework.support.Registry register​(java.lang.String name,
                                                             @NonNull
                                                             @NonNull java.lang.Object answer)
        Specified by:
        register in interface io.gridgo.framework.support.Registry