Class WrapperBufferOutput.VersionAwareBufferOutput

java.lang.Object
com.tangosol.util.Base
com.tangosol.io.WrapperBufferOutput
com.tangosol.io.WrapperBufferOutput.VersionAwareBufferOutput
All Implemented Interfaces:
com.oracle.coherence.common.io.OutputStreaming, OutputStreaming, WriteBuffer.BufferOutput, DataOutput
Enclosing class:
WrapperBufferOutput

public static class WrapperBufferOutput.VersionAwareBufferOutput extends WrapperBufferOutput
A BufferOutput implementation that in addition to delegating to the given DataOutput provides an API to check whether the recipients of the content of this BufferOutput run versions that supersede (greater or equal to) the specified version.
  • Field Details

    • f_message

      protected final com.tangosol.internal.net.MessageComponent f_message
      The associated message being sent.
  • Constructor Details

    • VersionAwareBufferOutput

      public VersionAwareBufferOutput(DataOutput out, com.tangosol.internal.net.MessageComponent message)
      Construct a VersionAwareBufferOutput that will write to the specified object implementing the DataOutput interface.
      Parameters:
      out - an object implementing DataOutput to write to
      message - the associated message being sent
  • Method Details

    • isVersionCompatible

      public boolean isVersionCompatible(int nMajor, int nMinor, int nMicro, int nPatchSet, int nPatch)
      Determine whether all the recipients of the content of this BufferOutput run versions that supersede (greater or equal to) the specified version.
      Returns:
      true iff all the recipients' versions are greater or equal to the specified one
    • isVersionCompatible

      public boolean isVersionCompatible(int nYear, int nMonth, int nPatch)
      Determine whether all the recipients of the content of this BufferOutput run versions that supersede (greater or equal to) the specified version.
      Returns:
      true iff all the recipients' versions are greater or equal to the specified one