Class RollingFileManager.EmptyQueue

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Runnable>, java.util.Collection<java.lang.Runnable>, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.Queue<java.lang.Runnable>
    Enclosing class:
    RollingFileManager

    private static class RollingFileManager.EmptyQueue
    extends java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyQueue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.Runnable runnable)  
      boolean addAll​(java.util.Collection<? extends java.lang.Runnable> collection)  
      boolean offer​(java.lang.Runnable runnable, long timeout, java.util.concurrent.TimeUnit timeUnit)  
      void put​(java.lang.Runnable runnable)  
      int remainingCapacity()  
      • Methods inherited from class java.util.concurrent.ArrayBlockingQueue

        clear, contains, drainTo, drainTo, forEach, iterator, offer, peek, poll, poll, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
      • Methods inherited from class java.util.AbstractQueue

        element, remove
      • Methods inherited from class java.util.AbstractCollection

        containsAll, isEmpty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
      • Methods inherited from interface java.util.Queue

        element, remove
    • Constructor Detail

      • EmptyQueue

        EmptyQueue()
    • Method Detail

      • remainingCapacity

        public int remainingCapacity()
        Specified by:
        remainingCapacity in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
        Overrides:
        remainingCapacity in class java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable>
      • add

        public boolean add​(java.lang.Runnable runnable)
        Specified by:
        add in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
        Specified by:
        add in interface java.util.Collection<java.lang.Runnable>
        Specified by:
        add in interface java.util.Queue<java.lang.Runnable>
        Overrides:
        add in class java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable>
      • put

        public void put​(java.lang.Runnable runnable)
                 throws java.lang.InterruptedException
        Specified by:
        put in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
        Overrides:
        put in class java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable>
        Throws:
        java.lang.InterruptedException
      • offer

        public boolean offer​(java.lang.Runnable runnable,
                             long timeout,
                             java.util.concurrent.TimeUnit timeUnit)
                      throws java.lang.InterruptedException
        Specified by:
        offer in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
        Overrides:
        offer in class java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable>
        Throws:
        java.lang.InterruptedException
      • addAll

        public boolean addAll​(java.util.Collection<? extends java.lang.Runnable> collection)
        Specified by:
        addAll in interface java.util.Collection<java.lang.Runnable>
        Overrides:
        addAll in class java.util.AbstractQueue<java.lang.Runnable>