Recursively GREP for specific content
nohup egrep -rnw ‘=\s112’ –include=*.java ./ 2>&1 | tee ~/112-audit-nick.txt
nohup egrep -rnw ‘=\s112’ –include=*.java ./ 2>&1 | tee ~/112-audit-nick.txt
Here we will create Data retrieval service with exponential backoff that we covered in the previous post. Implementation package com.rms.blueprint.data; import java.util.Date; import java.util.Objects; import java.util.concurrent.TimeUnit; import java.util.function.Function; import java.util.function.ObjLongConsumer; import java.util.function.Supplier; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class DataRetrievalWithBackoff implements Runnable { public final Logger LOGGER = LoggerFactory.getLogger(DataRetrievalWithBackoff.class); private final …
In a variety of computer networks, binary exponential backoff or truncated binary exponential backoff refers to an algorithm used to space out repeated retransmissions of the same block of data, often as part of network congestion avoidance. Wikipedia Exponential backoff Here is an implementation in Java /** * Calculate Exponential backoff * * @param attempt …