org.hibernate.search.indexes.serialization.avro.impl

## Class KnownProtocols

- java.lang.Object
- - org.hibernate.search.indexes.serialization.avro.impl.KnownProtocols

-     public final class KnownProtocols
      extends Object

  Keeps a reference to each known Avro Protocol revision we can support. Only a single Major version is supported, but for minor revisions we should always be able to deserialize an older encoding scheme. For minor revisions beyond the last known version a best effort is applied and a warning is logged. Each Protocol is only created at first use, so to not waste parsing time nor memory for unused revisions.
  Since:
    5.0
  Author:
    Sanne Grinovero

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `LATEST_MINOR_VERSION`
    `static int` | `MAJOR_VERSION` Latest protocol version is 1.2

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `KnownProtocols()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.avro.Protocol` | `getLatestProtocol()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### MAJOR_VERSION

          public static final int MAJOR_VERSION

      Latest protocol version is 1.2
      See Also:
        Constant Field Values

    - #### LATEST_MINOR_VERSION

          public static final int LATEST_MINOR_VERSION

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### KnownProtocols

          public KnownProtocols()

  - ### Method Detail

    - #### getLatestProtocol

          public org.apache.avro.Protocol getLatestProtocol()

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved