Package com.tangosol.io
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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.io.WrapperBufferOutput
WrapperBufferOutput.VersionAwareBufferOutput
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.tangosol.internal.net.MessageComponent
The associated message being sent.Fields inherited from class com.tangosol.util.Base
LOG_ALWAYS, LOG_CONFIG, LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_MAX, LOG_MIN, LOG_QUIET, LOG_WARN, POWER_0, POWER_G, POWER_K, POWER_M, POWER_T, UNIT_D, UNIT_H, UNIT_M, UNIT_MS, UNIT_NS, UNIT_S, UNIT_US
Fields inherited from interface com.tangosol.io.WriteBuffer.BufferOutput
MAX_PACKED_INT_SIZE, MAX_PACKED_LONG_SIZE
-
Constructor Summary
ConstructorDescriptionVersionAwareBufferOutput
(DataOutput out, com.tangosol.internal.net.MessageComponent message) Construct a VersionAwareBufferOutput that will write to the specified object implementing the DataOutput interface. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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.Methods inherited from class com.tangosol.io.WrapperBufferOutput
close, flush, getBuffer, getDataOutput, getOffset, setOffset, write, write, write, writeBoolean, writeBuffer, writeBuffer, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writePackedInt, writePackedLong, writeSafeUTF, writeShort, writeStream, writeStream, writeUTF
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Field Details
-
f_message
protected final com.tangosol.internal.net.MessageComponent f_messageThe associated message being sent.
-
-
Constructor Details
-
VersionAwareBufferOutput
Construct a VersionAwareBufferOutput that will write to the specified object implementing the DataOutput interface.- Parameters:
out
- an object implementing DataOutput to write tomessage
- 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
-