Class NamedWriteableRegistry.Entry
java.lang.Object
org.elasticsearch.common.io.stream.NamedWriteableRegistry.Entry
- Enclosing class:
- NamedWriteableRegistry
public static class NamedWriteableRegistry.Entry
extends java.lang.Object
An entry in the registry, made up of a category class and name, and a reader for that category class.
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class<?>categoryClassThe superclass of aNamedWriteablewhich will be read byreader.java.lang.StringnameA name for the writeable which is unique to thecategoryClass.Writeable.Reader<?>readerA reader capability of reading -
Constructor Summary
Constructors Constructor Description Entry(java.lang.Class<T> categoryClass, java.lang.String name, Writeable.Reader<? extends T> reader)Creates a new entry which can be stored by the registry. -
Method Summary
-
Field Details
-
categoryClass
public final java.lang.Class<?> categoryClassThe superclass of aNamedWriteablewhich will be read byreader. -
name
public final java.lang.String nameA name for the writeable which is unique to thecategoryClass. -
reader
A reader capability of reading
-
-
Constructor Details
-
Entry
public Entry(java.lang.Class<T> categoryClass, java.lang.String name, Writeable.Reader<? extends T> reader)Creates a new entry which can be stored by the registry.
-