类 Cache


  • public class Cache
    extends java.lang.Object
    cache 任务
    • 字段详细资料

      • KEY_COMMAND

        public static final java.lang.String KEY_COMMAND
        key of command
        另请参阅:
        常量字段值
      • KEY_SHOULD_LISTEN

        public static final java.lang.String KEY_SHOULD_LISTEN
        key of should listen
        另请参阅:
        常量字段值
      • KEY_SHOULD_END_SESSION

        public static final java.lang.String KEY_SHOULD_END_SESSION
        key of shouldEndSession
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Cache

        public Cache()
    • 方法详细资料

      • clear

        public void clear()
        清空队列
      • isEmpty

        public boolean isEmpty()
      • setCommand

        public void setCommand​(Command command)
        cache command
        参数:
        command - Command
      • setShouldListen

        public void setShouldListen​(boolean shouldListen)
        cache shouldListen
        参数:
        shouldListen - boolean
      • setShouldEndSession

        public void setShouldEndSession​(boolean shouldEndSession)
        cache shouldEndSession
        参数:
        shouldEndSession - boolean