Interface ILateralCacheAttributes

All Superinterfaces:
AuxiliaryCacheAttributes, Cloneable, Serializable
All Known Subinterfaces:
ITCPLateralCacheAttributes
All Known Implementing Classes:
LateralCacheAttributes, TCPLateralCacheAttributes

This interface defines configuration options common to lateral cache plugins.

TODO it needs to be trimmed down. The old version had features for every lateral. Now, the individual laterals have their own specific attributes interfaces.

  • Field Details

  • Method Details

    • setHttpServer

      void setHttpServer(String val)
      Sets the httpServer attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new httpServer value
    • getHttpServer

      Gets the httpServer attribute of the ILateralCacheAttributes object

      Returns:
      The httpServer value
    • setHttpListenerPort

      void setHttpListenerPort(int val)
      Sets the httpListenerPort attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new tcpListenerPort value
    • getHttpListenerPort

      Gets the httpListenerPort attribute of the ILateralCacheAttributes object

      Returns:
      The httpListenerPort value
    • setHttpServers

      Sets the httpServers attribute of the LateralCacheAttributes object

      Parameters:
      val - The new httpServers value
    • getHttpServers

      Gets the httpSrvers attribute of the LateralCacheAttributes object

      Returns:
      The httpServers value
    • setUdpMulticastAddr

      Sets the udpMulticastAddr attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new udpMulticastAddr value
    • getUdpMulticastAddr

      Gets the udpMulticastAddr attribute of the ILateralCacheAttributes object

      Returns:
      The udpMulticastAddr value
    • setUdpMulticastPort

      void setUdpMulticastPort(int val)
      Sets the udpMulticastPort attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new udpMulticastPort value
    • getUdpMulticastPort

      Gets the udpMulticastPort attribute of the ILateralCacheAttributes object

      Returns:
      The udpMulticastPort value
    • setTransmissionType

      Sets the transmissionType attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new transmissionType value
    • getTransmissionType

      Gets the transmissionType attribute of the ILateralCacheAttributes object

      Returns:
      The transmissionType value
    • setTransmissionTypeName

      Deprecated.
      Use setTransmissionType()
      Sets the transmissionTypeName attribute of the ILateralCacheAttributes object

      Parameters:
      val - The new transmissionTypeName value
    • getTransmissionTypeName

      Deprecated.
      Use getTransmissionType
      Gets the transmissionTypeName attribute of the ILateralCacheAttributes object

      Returns:
      The transmissionTypeName value
    • setPutOnlyMode

      void setPutOnlyMode(boolean val)
      Sets the putOnlyMode attribute of the ILateralCacheAttributes. When this is true the lateral cache will only issue put and remove order and will not try to retrieve elements from other lateral caches.

      Parameters:
      val - The new transmissionTypeName value
    • getPutOnlyMode

      boolean getPutOnlyMode()
      Returns:
      The outgoingOnlyMode value. Stops gets from going remote.
    • setReceive

      void setReceive(boolean receive)
      Parameters:
      receive - The receive to set.
    • isReceive

      boolean isReceive()
      Should a listener be created. By default this is true.

      If this is false the lateral will connect to others but it will not create a listener to receive.

      It is possible if two laterals are misconfigured that lateral A may have a region R1 that is not configured for the lateral but another is. And if cache B has region R1 configured for lateral distribution, A will get messages for R1 but not send them.

      Returns:
      true if we should have a listener connection
    • setZombieQueueMaxSize

      void setZombieQueueMaxSize(int zombieQueueMaxSize)
      The number of elements the zombie queue will hold. This queue is used to store events if we loose our connection with the server.

      Parameters:
      zombieQueueMaxSize - The zombieQueueMaxSize to set.
    • getZombieQueueMaxSize

      The number of elements the zombie queue will hold. This queue is used to store events if we loose our connection with the server.

      Returns:
      Returns the zombieQueueMaxSize.