Class LocalOnlyProcessor<K,​V,​R>

  • Type Parameters:
    K - the type of the Map entry key
    V - the type of the Map entry value
    R - the type of value returned by the EntryProcessor
    All Implemented Interfaces:
    com.tangosol.io.pof.PortableObject, com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R>, Serializable

    public class LocalOnlyProcessor<K,​V,​R>
    extends PortableAbstractProcessor<K,​V,​R>
    An InvocableMap.EntryProcessor that invokes another InvocableMap.EntryProcessor only on Map.Entrys that are located in the process that created the LocalOnlyProcessor.
    Since:
    21.12
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.tangosol.util.Base

        com.tangosol.util.Base.LoggingWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.tangosol.net.Member f_submittingMember
      The Member that submitted the LocalOnlyProcessor.
      protected com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R> m_processor
      The InvocableMap.EntryProcessor to invoke.
      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V,​R>
      LocalOnlyProcessor<K,​V,​R>
      of​(com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R> processor)
      Creates a LocalOnlyProcessor for the specified InvocableMap.EntryProcessor.
      R process​(com.tangosol.util.InvocableMap.Entry<K,​V> entry)  
      void readExternal​(com.tangosol.io.pof.PofReader in)  
      void writeExternal​(com.tangosol.io.pof.PofWriter out)  
      • Methods inherited from class com.tangosol.util.processor.AbstractProcessor

        processAll
      • 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, 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 Detail

      • m_processor

        protected com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R> m_processor
        The InvocableMap.EntryProcessor to invoke.
      • f_submittingMember

        protected final com.tangosol.net.Member f_submittingMember
        The Member that submitted the LocalOnlyProcessor.
    • Constructor Detail

      • LocalOnlyProcessor

        public LocalOnlyProcessor()
        Constructs a LocalOnlyProcessor (required for serialization).
      • LocalOnlyProcessor

        public LocalOnlyProcessor​(com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R> processor)
        Constructs a LocalOnlyProcessor for the specified InvocableMap.EntryProcessor.
        Parameters:
        processor - the InvocableMap.EntryProcessor
    • Method Detail

      • process

        public R process​(com.tangosol.util.InvocableMap.Entry<K,​V> entry)
      • of

        public static <K,​V,​R> LocalOnlyProcessor<K,​V,​R> of​(com.tangosol.util.InvocableMap.EntryProcessor<K,​V,​R> processor)
        Creates a LocalOnlyProcessor for the specified InvocableMap.EntryProcessor.
        Parameters:
        processor - the InvocableMap.EntryProcessor
        Returns:
        a LocalOnlyProcessor