Package com.adaptris.core.services.cache
Interface CacheValueTranslator<S>
-
- All Known Implementing Classes:
BytePayloadCacheValueTranslator
,CacheEntryEvaluator.NullCacheValueTranslator
,JmsReplyToCacheValueTranslator
,MetadataCacheValueTranslator
,ObjectMetadataCacheValueTranslator
,StaticCacheValueTranslator
,StringPayloadCacheTranslator
,XpathCacheValueTranslator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CacheValueTranslator<S>
Interface that defines a two way interaction - one to retrieve a value from anAdaptrisMessage
and another to inject a value into one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addValueToMessage(AdaptrisMessage msg, S value)
Injects the supplied Object value into the message,S
getValueFromMessage(AdaptrisMessage msg)
Retrieves a value from a message
-
-
-
Method Detail
-
getValueFromMessage
S getValueFromMessage(AdaptrisMessage msg) throws CoreException
Retrieves a value from a message- Throws:
CoreException
-
addValueToMessage
default void addValueToMessage(AdaptrisMessage msg, S value) throws CoreException
Injects the supplied Object value into the message,- Throws:
CoreException
- Implementation Note:
- The default implementation throws an UnsupportedOperationException and should be overridden.
-
-