Skip to Main Content

overriding Coherence packet size

User_L0XYYOct 11 2017 — edited Oct 16 2017

I want to provide a system property that can be used to override the packet publisher packet size, but in the event that the system property is not set, I don't want to disturb the default behavior in 12.x that determines the packet size based on the MTU.

For example, an override like this will set the value to 1468 by default, but that value can be overridden if -Dtangosol.coherence.packet.size=NNNN is specified on the command line.

  <cluster-config>

    <packet-publisher>

      <packet-size system-property="tangosol.coherence.packet.size">1468</packet-size>

    </packet-publisher>

  </cluster-config>

However, I do not want to explicitly specify a default value and want Coherence's default logic of using the MTU size to set the packet size if the system property is not set on the command line.

Does anyone know if defining the system property, but not setting a value will accomplish what I want?  Example:

  <cluster-config>

    <packet-publisher>

      <packet-size system-property="tangosol.coherence.packet.size"></packet-size>

    </packet-publisher>

  </cluster-config>

or...

  <cluster-config>

    <packet-publisher>

      <packet-size system-property="tangosol.coherence.packet.size" />

    </packet-publisher>

  </cluster-config>

Thanks for your help.

Comments
Post Details
Added on Oct 11 2017
6 comments
220 views