Package com.alibaba.ttl.spi
Class TtlAttachmentsDelegate
java.lang.Object
com.alibaba.ttl.spi.TtlAttachmentsDelegate
- All Implemented Interfaces:
TtlAttachments
,TtlEnhanced
TtlAttachments
delegate/implementation.- Since:
- 2.11.0
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
-
Field Summary
Fields inherited from interface com.alibaba.ttl.spi.TtlAttachments
KEY_IS_AUTO_WRAPPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
getTtlAttachment
(String key) get the TTL attachment for TTL tasksvoid
setTtlAttachment
(String key, Object value) set the TTL attachments for TTL tasks
-
Constructor Details
-
TtlAttachmentsDelegate
public TtlAttachmentsDelegate()
-
-
Method Details
-
setTtlAttachment
Description copied from interface:TtlAttachments
set the TTL attachments for TTL tasks- Specified by:
setTtlAttachment
in interfaceTtlAttachments
- Parameters:
key
- attachment keyvalue
- attachment value
-
getTtlAttachment
Description copied from interface:TtlAttachments
get the TTL attachment for TTL tasks- Specified by:
getTtlAttachment
in interfaceTtlAttachments
- Parameters:
key
- attachment key
-