Class OpenWireFormat

    • Constructor Detail

      • OpenWireFormat

        public OpenWireFormat()
      • OpenWireFormat

        public OpenWireFormat​(int i)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface WireFormat
        Returns:
        the version of the wire format
      • setVersion

        public void setVersion​(int version)
        Allows you to dynamically switch the version of the openwire protocol being used.
        Specified by:
        setVersion in interface WireFormat
        Parameters:
        version -
      • runMarshallCacheEvictionSweep

        public void runMarshallCacheEvictionSweep()
      • setInUnmarshallCache

        public void setInUnmarshallCache​(short index,
                                         DataStructure o)
      • getFromUnmarshallCache

        public DataStructure getFromUnmarshallCache​(short index)
      • setStackTraceEnabled

        public void setStackTraceEnabled​(boolean b)
      • isStackTraceEnabled

        public boolean isStackTraceEnabled()
      • isTcpNoDelayEnabled

        public boolean isTcpNoDelayEnabled()
      • setTcpNoDelayEnabled

        public void setTcpNoDelayEnabled​(boolean tcpNoDelayEnabled)
      • isCacheEnabled

        public boolean isCacheEnabled()
      • setCacheEnabled

        public void setCacheEnabled​(boolean cacheEnabled)
      • isTightEncodingEnabled

        public boolean isTightEncodingEnabled()
      • setTightEncodingEnabled

        public void setTightEncodingEnabled​(boolean tightEncodingEnabled)
      • isSizePrefixDisabled

        public boolean isSizePrefixDisabled()
      • setSizePrefixDisabled

        public void setSizePrefixDisabled​(boolean prefixPacketSize)
      • setPreferedWireFormatInfo

        public void setPreferedWireFormatInfo​(WireFormatInfo info)
      • getPreferedWireFormatInfo

        public WireFormatInfo getPreferedWireFormatInfo()
      • getMaxFrameSize

        public long getMaxFrameSize()
      • setMaxFrameSize

        public void setMaxFrameSize​(long maxFrameSize)
      • isMaxFrameSizeEnabled

        public boolean isMaxFrameSizeEnabled()
      • setMaxFrameSizeEnabled

        public void setMaxFrameSizeEnabled​(boolean maxFrameSizeEnabled)
        Set whether the maxFrameSize check will be enabled. Note this is only applied to this format and will NOT be negotiated
        Parameters:
        maxFrameSizeEnabled -
      • min

        protected int min​(int version1,
                          int version2)
      • min

        protected long min​(long version1,
                           long version2)