Package com.alibaba.ttl.spi
Interface TtlAttachments
- All Superinterfaces:
TtlEnhanced
- All Known Implementing Classes:
TtlAttachmentsDelegate,TtlCallable,TtlRunnable
The TTL attachments for TTL tasks,
eg:
TtlRunnable, TtlCallable.- Since:
- 2.11.0
- Author:
- Jerry Lee (oldratlee at gmail dot com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attachment key of TTL task, weather this task is a auto wrapper task. -
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
-
Field Details
-
KEY_IS_AUTO_WRAPPER
The attachment key of TTL task, weather this task is a auto wrapper task.so the value of this attachment is a
boolean.- Since:
- 2.11.0
- See Also:
-
-
Method Details
-
setTtlAttachment
set the TTL attachments for TTL tasks- Parameters:
key- attachment keyvalue- attachment value- Since:
- 2.11.0
-
getTtlAttachment
get the TTL attachment for TTL tasks- Parameters:
key- attachment key- Since:
- 2.11.0
-