Class BufferingRequestLog
- java.lang.Object
-
- com.google.common.collect.FluentIterable<Exchange>
-
- org.swisspush.gateleen.player.log.RequestLog
-
- org.swisspush.gateleen.player.log.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]
-
-
Constructor Summary
Constructors Constructor Description BufferingRequestLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Exchange exchange)voidclear()voiddump(BufferingRequestLog target)Move all exchange from this request log to another one.java.util.Iterator<Exchange>iterator()java.lang.StringtoString()-
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
-
-
-
-
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:
toStringin classcom.google.common.collect.FluentIterable<Exchange>
-
-