Package com.alibaba.ttl.spi
Class TtlAttachmentsDelegate
- java.lang.Object
-
- com.alibaba.ttl.spi.TtlAttachmentsDelegate
-
- All Implemented Interfaces:
TtlAttachments,TtlEnhanced
public class TtlAttachmentsDelegate extends Object implements TtlAttachments
TtlAttachmentsdelegate/implementation.- Since:
- 2.11.0
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
TtlRunnable,TtlCallable
-
-
Field Summary
-
Fields inherited from interface com.alibaba.ttl.spi.TtlAttachments
KEY_IS_AUTO_WRAPPER
-
-
Constructor Summary
Constructors Constructor Description TtlAttachmentsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetTtlAttachment(String key)get the TTL attachment for TTL tasksvoidsetTtlAttachment(String key, Object value)set the TTL attachments for TTL tasks
-
-
-
Method Detail
-
setTtlAttachment
public void setTtlAttachment(@NonNull String key, Object value)
Description copied from interface:TtlAttachmentsset the TTL attachments for TTL tasks- Specified by:
setTtlAttachmentin interfaceTtlAttachments- Parameters:
key- attachment keyvalue- attachment value
-
getTtlAttachment
public <T> T getTtlAttachment(@NonNull String key)
Description copied from interface:TtlAttachmentsget the TTL attachment for TTL tasks- Specified by:
getTtlAttachmentin interfaceTtlAttachments- Parameters:
key- attachment key
-
-