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 final String
    The attachment key of TTL task, weather this task is a auto wrapper task.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get the TTL attachment for TTL tasks
    void
    set the TTL attachments for TTL tasks
  • Field Details

    • 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:
  • Method Details

    • setTtlAttachment

      void setTtlAttachment(@NonNull String key, Object value)
      set the TTL attachments for TTL tasks
      Parameters:
      key - attachment key
      value - attachment value
      Since:
      2.11.0
    • getTtlAttachment

      <T> T getTtlAttachment(@NonNull String key)
      get the TTL attachment for TTL tasks
      Parameters:
      key - attachment key
      Since:
      2.11.0