test_class.declarator: SUCCESS_CAPACITY = 2
test_class.modifier: private static final
test_class.original_string: private static final int SUCCESS_CAPACITY = 2;
test_class.type: int
test_class.var_name: SUCCESS_CAPACITY
test_class.declarator: FAILURE_CAPACITY = 4
test_class.modifier: private static final
test_class.original_string: private static final int FAILURE_CAPACITY = 4;
test_class.type: int
test_class.var_name: FAILURE_CAPACITY
test_class.declarator: CATEGORY = LogCategory.TARGET
test_class.modifier: private static final
test_class.original_string: private static final LogCategory CATEGORY = LogCategory.TARGET;
test_class.type: LogCategory
test_class.var_name: CATEGORY
test_class.declarator: TYPE = LogType.MAPPED
test_class.modifier: private static final
test_class.original_string: private static final LogType TYPE = LogType.MAPPED;
test_class.type: LogType
test_class.var_name: TYPE
test_class.declarator: THING_ID = ThingId.of("any:thing")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("any:thing");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: INFO_PROVIDER_WITH_THING = infoProviderWithThingId(THING_ID)
test_class.modifier: private static final
test_class.original_string: private static final ConnectionMonitor.InfoProvider INFO_PROVIDER_WITH_THING = infoProviderWithThingId(THING_ID);
test_class.type: ConnectionMonitor.InfoProvider
test_class.var_name: INFO_PROVIDER_WITH_THING
test_class.file: services/connectivity/messaging/src/test/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/logs/EvictingConnectionLoggerTest.java
test_class.identifier: EvictingConnectionLoggerTest
test_case.body: @Test
      public void withDebugLogHeadersAndPayload() {
          final EvictingConnectionLogger logger = builder().logHeadersAndPayload().build();
  
          final String textPayload = "{\"foo\":\"bar\"}";
          final ConnectionMonitor.InfoProvider info = infoProviderWithHeaderAndPayloadDebugLogging(textPayload);
  
          logger.success(info);
          final LogEntry entry = getFirstAndOnlyEntry(logger);
  
          LogEntryAssertions.assertThat(entry)
                  .hasMessageContainingPayload(textPayload)
                  .hasMessageContainingHeaderValues(info.getHeaders());
      }
test_case.class_method_signature: EvictingConnectionLoggerTest.withDebugLogHeadersAndPayload()
test_case.full_signature: @Test public void withDebugLogHeadersAndPayload()
test_case.identifier: withDebugLogHeadersAndPayload
test_case.invocations: build logHeadersAndPayload builder infoProviderWithHeaderAndPayloadDebugLogging success getFirstAndOnlyEntry hasMessageContainingHeaderValues hasMessageContainingPayload assertThat getHeaders
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void withDebugLogHeadersAndPayload()
focal_class.declarator: LOGGER = DittoLoggerFactory.getLogger(EvictingConnectionLogger.class)
focal_class.modifier: private static final
focal_class.original_string: private static final DittoLogger LOGGER = DittoLoggerFactory.getLogger(EvictingConnectionLogger.class);
focal_class.type: DittoLogger
focal_class.var_name: LOGGER
focal_class.declarator: FALLBACK_EXCEPTION_TEXT = "not specified"
focal_class.modifier: private static final
focal_class.original_string: private static final String FALLBACK_EXCEPTION_TEXT = "not specified";
focal_class.type: String
focal_class.var_name: FALLBACK_EXCEPTION_TEXT
focal_class.declarator: category
focal_class.modifier: private final
focal_class.original_string: private final LogCategory category;
focal_class.type: LogCategory
focal_class.var_name: category
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final LogType type;
focal_class.type: LogType
focal_class.var_name: type
focal_class.declarator: successLogs
focal_class.modifier: private final
focal_class.original_string: private final EvictingQueue<LogEntry> successLogs;
focal_class.type: EvictingQueue<LogEntry>
focal_class.var_name: successLogs
focal_class.declarator: failureLogs
focal_class.modifier: private final
focal_class.original_string: private final EvictingQueue<LogEntry> failureLogs;
focal_class.type: EvictingQueue<LogEntry>
focal_class.var_name: failureLogs
focal_class.declarator: defaultSuccessMessage
focal_class.modifier: private final
focal_class.original_string: private final String defaultSuccessMessage;
focal_class.type: String
focal_class.var_name: defaultSuccessMessage
focal_class.declarator: defaultFailureMessage
focal_class.modifier: private final
focal_class.original_string: private final String defaultFailureMessage;
focal_class.type: String
focal_class.var_name: defaultFailureMessage
focal_class.declarator: defaultExceptionMessage
focal_class.modifier: private final
focal_class.original_string: private final String defaultExceptionMessage;
focal_class.type: String
focal_class.var_name: defaultExceptionMessage
focal_class.declarator: logHeadersAndPayload
focal_class.modifier: private final
focal_class.original_string: private final boolean logHeadersAndPayload;
focal_class.type: boolean
focal_class.var_name: logHeadersAndPayload
focal_class.declarator: address
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String address;
focal_class.type: String
focal_class.var_name: address
focal_class.file: services/connectivity/messaging/src/main/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/logs/EvictingConnectionLogger.java
focal_class.identifier: EvictingConnectionLogger
focal_class.interfaces: implements ConnectionLogger
focal_class.class_method_signature: EvictingConnectionLogger.EvictingConnectionLogger(final Builder builder)
focal_class.full_signature: private  EvictingConnectionLogger(final Builder builder)
focal_class.identifier: EvictingConnectionLogger
focal_class.modifiers: private
focal_class.parameters: (final Builder builder)
focal_class.signature:  EvictingConnectionLogger(final Builder builder)
focal_class.class_method_signature: EvictingConnectionLogger.newBuilder(final int successCapacity,
              final int failureCapacity,
              final LogCategory category,
              final LogType type)
focal_class.full_signature: static Builder newBuilder(final int successCapacity,
              final int failureCapacity,
              final LogCategory category,
              final LogType type)
focal_class.identifier: newBuilder
focal_class.modifiers: static
focal_class.parameters: (final int successCapacity,
              final int failureCapacity,
              final LogCategory category,
              final LogType type)
focal_class.return: Builder
focal_class.signature: Builder newBuilder(final int successCapacity,
              final int failureCapacity,
              final LogCategory category,
              final LogType type)
focal_class.class_method_signature: EvictingConnectionLogger.formatMessage(final String message, final Object... messageArguments)
focal_class.full_signature: private static String formatMessage(final String message, final Object... messageArguments)
focal_class.identifier: formatMessage
focal_class.modifiers: private static
focal_class.parameters: (final String message, final Object... messageArguments)
focal_class.return: String
focal_class.signature: String formatMessage(final String message, final Object... messageArguments)
focal_class.class_method_signature: EvictingConnectionLogger.success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.full_signature: @Override public void success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.identifier: success
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider)
focal_class.return: void
focal_class.signature: void success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.class_method_signature: EvictingConnectionLogger.success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: success
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: EvictingConnectionLogger.failure(final ConnectionMonitor.InfoProvider infoProvider,
              @Nullable final DittoRuntimeException dittoRuntimeException)
focal_class.full_signature: @Override public void failure(final ConnectionMonitor.InfoProvider infoProvider,
              @Nullable final DittoRuntimeException dittoRuntimeException)
focal_class.identifier: failure
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider,
              @Nullable final DittoRuntimeException dittoRuntimeException)
focal_class.return: void
focal_class.signature: void failure(final ConnectionMonitor.InfoProvider infoProvider,
              @Nullable final DittoRuntimeException dittoRuntimeException)
focal_class.class_method_signature: EvictingConnectionLogger.failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: failure
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: EvictingConnectionLogger.exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.full_signature: @Override public void exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.identifier: exception
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.return: void
focal_class.signature: void exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.class_method_signature: EvictingConnectionLogger.exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: exception
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: EvictingConnectionLogger.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: EvictingConnectionLogger.getLogs()
focal_class.full_signature: @Override public Collection<LogEntry> getLogs()
focal_class.identifier: getLogs
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<LogEntry>
focal_class.signature: Collection<LogEntry> getLogs()
focal_class.class_method_signature: EvictingConnectionLogger.formatMessage(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: private String formatMessage(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: formatMessage
focal_class.modifiers: private
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: String
focal_class.signature: String formatMessage(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: EvictingConnectionLogger.addHeadersAndPayloadToMessage(final ConnectionMonitor.InfoProvider infoProvider,
              final String initialMessage)
focal_class.full_signature: private String addHeadersAndPayloadToMessage(final ConnectionMonitor.InfoProvider infoProvider,
              final String initialMessage)
focal_class.identifier: addHeadersAndPayloadToMessage
focal_class.modifiers: private
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider,
              final String initialMessage)
focal_class.return: String
focal_class.signature: String addHeadersAndPayloadToMessage(final ConnectionMonitor.InfoProvider infoProvider,
              final String initialMessage)
focal_class.class_method_signature: EvictingConnectionLogger.getDebugHeaderMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.full_signature: private static String getDebugHeaderMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.identifier: getDebugHeaderMessage
focal_class.modifiers: private static
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider)
focal_class.return: String
focal_class.signature: String getDebugHeaderMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.class_method_signature: EvictingConnectionLogger.getDebugPayloadMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.full_signature: private static String getDebugPayloadMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.identifier: getDebugPayloadMessage
focal_class.modifiers: private static
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider)
focal_class.return: String
focal_class.signature: String getDebugPayloadMessage(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.class_method_signature: EvictingConnectionLogger.equals(@Nullable final Object o)
focal_class.full_signature: @SuppressWarnings("OverlyComplexMethod") @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings("OverlyComplexMethod") @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: EvictingConnectionLogger.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: EvictingConnectionLogger.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: EvictingConnectionLogger.getLogEntry(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final LogLevel logLevel)
focal_class.full_signature: private LogEntry getLogEntry(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final LogLevel logLevel)
focal_class.identifier: getLogEntry
focal_class.modifiers: private
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final LogLevel logLevel)
focal_class.return: LogEntry
focal_class.signature: LogEntry getLogEntry(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final LogLevel logLevel)
focal_class.class_method_signature: EvictingConnectionLogger.logTraceWithCorrelationId(final CharSequence correlationId,
              final String level,
              final ConnectionMonitor.InfoProvider infoProvider,
              final String message)
focal_class.full_signature: private static void logTraceWithCorrelationId(final CharSequence correlationId,
              final String level,
              final ConnectionMonitor.InfoProvider infoProvider,
              final String message)
focal_class.identifier: logTraceWithCorrelationId
focal_class.modifiers: private static
focal_class.parameters: (final CharSequence correlationId,
              final String level,
              final ConnectionMonitor.InfoProvider infoProvider,
              final String message)
focal_class.return: void
focal_class.signature: void logTraceWithCorrelationId(final CharSequence correlationId,
              final String level,
              final ConnectionMonitor.InfoProvider infoProvider,
              final String message)
focal_method.body: @Override
      public void success(final ConnectionMonitor.InfoProvider infoProvider) {
          success(infoProvider, defaultSuccessMessage);
      }
focal_method.class_method_signature: EvictingConnectionLogger.success(final ConnectionMonitor.InfoProvider infoProvider)
focal_method.full_signature: @Override public void success(final ConnectionMonitor.InfoProvider infoProvider)
focal_method.identifier: success
focal_method.invocations: success
focal_method.modifiers: @Override public
focal_method.parameters: (final ConnectionMonitor.InfoProvider infoProvider)
focal_method.return: void
focal_method.signature: void success(final ConnectionMonitor.InfoProvider infoProvider)