Class BufferingRequestLog

  • All Implemented Interfaces:
    java.lang.Iterable<Exchange>

    public class BufferingRequestLog
    extends RequestLog
    A request log implemented with an in-memory buffer. Thread safe.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Exchange exchange)  
      void clear()  
      void dump​(BufferingRequestLog target)
      Move all exchange from this request log to another one.
      java.util.Iterator<Exchange> iterator()  
      java.lang.String toString()  
      • Methods inherited from class com.google.common.collect.FluentIterable

        allMatch, anyMatch, append, append, concat, concat, concat, concat, concat, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, from, get, index, isEmpty, join, last, limit, of, of, of, size, skip, stream, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, transform, transformAndConcat, uniqueIndex
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
    • Constructor Detail

      • BufferingRequestLog

        public BufferingRequestLog()
    • Method Detail

      • add

        public void add​(Exchange exchange)
      • dump

        public void dump​(BufferingRequestLog target)
        Move all exchange from this request log to another one.
        Parameters:
        target - target
      • clear

        public void clear()
      • iterator

        public java.util.Iterator<Exchange> iterator()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class com.google.common.collect.FluentIterable<Exchange>