Interface LocalRegistry<K,V>

Type Parameters:
K - the registry key type
V - the registry value type
All Superinterfaces:
AutoCloseable, org.wildfly.clustering.server.Registrar<org.wildfly.clustering.server.registry.RegistryListener<K,V>>, org.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>

public interface LocalRegistry<K,V> extends org.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>
Local Registry.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static <K,V> LocalRegistry<K,V>
    of(LocalGroup group, Map.Entry<K,V> entry, Runnable closeTask)
    Creates a local registry with the specified group and registry entry.

    Methods inherited from interface org.wildfly.clustering.server.Registrar

    register

    Methods inherited from interface org.wildfly.clustering.server.registry.Registry

    close, getEntries, getEntry
  • Method Details

    • getGroup

      LocalGroup getGroup()
      Specified by:
      getGroup in interface org.wildfly.clustering.server.registry.Registry<LocalGroupMember, K, V>
    • of

      static <K,V> LocalRegistry<K,V> of(LocalGroup group, Map.Entry<K,V> entry, Runnable closeTask)
      Creates a local registry with the specified group and registry entry.
      Type Parameters:
      K - the registry key type
      V - the registry value type
      Parameters:
      group - the local group
      entry - the local registry entry
      closeTask - a task to run on Registry.close().
      Returns:
      a local registry with the specified group and registry entry.