Package com.alibaba.ttl.spi
Interface TtlAttachments
-
- All Superinterfaces:
TtlEnhanced
- All Known Implementing Classes:
TtlAttachmentsDelegate
,TtlCallable
,TtlRunnable
public interface TtlAttachments extends TtlEnhanced
The TTL attachments for TTL tasks, eg:TtlRunnable
,TtlCallable
.- Since:
- 2.11.0
- Author:
- Jerry Lee (oldratlee at gmail dot com)
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_IS_AUTO_WRAPPER
The attachment key of TTL task, weather this task is a auto wrapper task.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getTtlAttachment(String key)
get the TTL attachment for TTL tasksvoid
setTtlAttachment(String key, Object value)
set the TTL attachments for TTL tasks
-
-
-
Field Detail
-
KEY_IS_AUTO_WRAPPER
static final String 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:
- Constant Field Values
-
-