Class AutoFlushContext

    • Field Detail

      • minPeriodMs

        protected final long minPeriodMs
      • maxPeriodMs

        protected final long maxPeriodMs
      • maxSize

        protected final int maxSize
    • Constructor Detail

      • AutoFlushContext

        public AutoFlushContext()
      • AutoFlushContext

        public AutoFlushContext​(long minPeriodMs,
                                long maxPeriodMs,
                                int maxSize)
    • Method Detail

      • isActive

        public boolean isActive()
        Description copied from interface: MetaContext
        Reports whether this context is currently active.

        Hierarchical implementations may require both the local context and all of its parents to be active.

        Specified by:
        isActive in interface MetaContext
        Overrides:
        isActive in class MetaContextBase
        Returns:
        true when the context is active
      • fireWritable

        public void fireWritable​(boolean w)
        Description copied from interface: MetaContext
        Publishes a writability-state change to listeners associated with this context.
        Specified by:
        fireWritable in interface MetaContext
        Overrides:
        fireWritable in class MetaContextBase
        Parameters:
        w - new writability state