Class AddToCacheService

    • Constructor Detail

      • AddToCacheService

        public AddToCacheService()
    • Method Detail

      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException
        Description copied from interface: Service

        Apply the service to the message.

        Parameters:
        msg - the AdaptrisMessage to process
        Throws:
        ServiceException - wrapping any underlying Exceptions
      • setEnforceSerializable

        public void setEnforceSerializable​(java.lang.Boolean bool)
        If this is set to true then the service will only attempt to cache values that are Serializable.

        An exception will be thrown if any non-serializable object is attempted to be cached. This is to enable non-memory based caching engines to be used (where serialization may be used to store the value)

        Parameters:
        bool - default is false.
      • getEnforceSerializable

        public java.lang.Boolean getEnforceSerializable()
      • enforceSerializable

        public boolean enforceSerializable()