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> TgetTtlAttachment(String key) get the TTL attachment for TTL tasksvoidsetTtlAttachment(String key, Object value) set the TTL attachments for TTL tasks
-
Constructor Details
-
TtlAttachmentsDelegate
public TtlAttachmentsDelegate()
-
-
Method Details
-
setTtlAttachment
Description copied from interface:TtlAttachmentsset the TTL attachments for TTL tasks- Specified by:
setTtlAttachmentin interfaceTtlAttachments- Parameters:
key- attachment keyvalue- attachment value
-
getTtlAttachment
Description copied from interface:TtlAttachmentsget the TTL attachment for TTL tasks- Specified by:
getTtlAttachmentin interfaceTtlAttachments- Parameters:
key- attachment key
-