Class RequestLogger.RequestLoggerTask
java.lang.Object
services.moleculer.web.middleware.RequestLogger.RequestLoggerTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
RequestLogger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final char[]protected static final char[]protected static final char[]protected final ExecutorServiceprotected static final char[]protected final intprotected final LinkedList<RequestLogger.RequestProperties> protected final AtomicBooleanprotected static final char[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequestLoggerTask(int maxPrintedBytes, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprintBytes(StringBuilder tmp, byte[] bytes, String contentType, String contentEncoding) protected voidprintDecimal(StringBuilder tmp, int value) protected voidprintHex(StringBuilder tmp, byte[] bytes) protected voidvoidrun()
-
Field Details
-
CR_LF
protected static final char[] CR_LF -
HEX
protected static final char[] HEX -
TWO_SPACES
protected static final char[] TWO_SPACES -
COLON_SPACE
protected static final char[] COLON_SPACE -
ETC
protected static final char[] ETC -
maxPrintedBytes
protected final int maxPrintedBytes -
executor
-
queue
-
running
-
-
Constructor Details
-
RequestLoggerTask
-
-
Method Details
-
execute
-
run
-
printRequest
-
printBytes
protected void printBytes(StringBuilder tmp, byte[] bytes, String contentType, String contentEncoding) -
printHex
-
printDecimal
-