Class WrapperBufferInput.VersionAwareBufferInput

All Implemented Interfaces:
com.oracle.coherence.common.io.InputStreaming, InputStreaming, ReadBuffer.BufferInput, Closeable, DataInput, AutoCloseable
Enclosing class:
WrapperBufferInput

public static class WrapperBufferInput.VersionAwareBufferInput extends WrapperBufferInput
A BufferInput implementation that in addition to delegating to the given DataInput provides an API to check whether the sender of the content of this BufferInput runs a version that supersedes (greater or equal to) the specified version.
  • Field Details

    • f_message

      protected final com.tangosol.internal.net.MessageComponent f_message
      The associated message received by this recipient.
  • Constructor Details

    • VersionAwareBufferInput

      public VersionAwareBufferInput(DataInput in, ClassLoader loader, com.tangosol.internal.net.MessageComponent msg)
      Construct a WrapperBufferInput that will read from the specified object implementing the DataInput interface.
      Parameters:
      in - an object implementing DataInput to read from
      loader - the ClassLoader
      msg - the associated message received from the recipient
  • Method Details

    • isVersionCompatible

      public boolean isVersionCompatible(int nMajor, int nMinor, int nMicro, int nPatchSet, int nPatch)
      Determine whether the sender of the content of this BufferInput runs a version that supersedes (greater or equal to) the specified version.
      Returns:
      true iff the sender's version is greater or equal to the specified one
    • isVersionCompatible

      public boolean isVersionCompatible(int nYear, int nMonth, int nPatch)
      Determine whether the sender of the content of this BufferInput runs a version that supersedes (greater or equal to) the specified version.
      Returns:
      true iff the sender's version is greater or equal to the specified one