博客 / 列表

codecraft - 聊聊JetCache的CachePenetrationProtect

序 本文主要研究一下JetCache的CachePenetrationProtect CachePenetrationProtect com/alicp/jetcache/anno/CachePenetrationProtect.java @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, Ele

緩存

codecraft - 聊聊JetCache的緩存構建

序 本文主要研究一下JetCache的緩存構建 invokeWithCached com/alicp/jetcache/anno/method/CacheHandler.java private static Object invokeWithCached(CacheInvokeContext context) throws Throwable {

緩存

codecraft - 聊聊redisson的lockWatchdogTimeout

序 本文主要研究一下redisson的lockWatchdogTimeout lockWatchdogTimeout redisson/src/main/java/org/redisson/config/Config.java private long lockWatchdogTimeout = 30 * 1000; /** * This parameter is o

緩存

codecraft - 聊聊redisson的RLock的unlock

序 本文主要研究一下redisson的RLock的unlock RLock org/redisson/api/RLock.java /** * Redis based implementation of {@link java.util.concurrent.locks.Lock} * Implements re-entrant lock. * * @author Nikita Koksh

緩存

codecraft - 聊聊spring-boot-autoconfigure的模塊化

序 本文主要研究一下spring-boot-autoconfigure的模塊化 現狀 spring-boot-autoconfigure git:(v2.3.12.RELEASE) ✗ tree -L 8 -I "test" . ├── build.gradle └── src └── main ├── java │ └── org │

springboot

codecraft - 聊聊logback的addtivity屬性

序 本文主要研究一下logback的addtivity屬性 LoggerModel ch/qos/logback/classic/model/LoggerModel.java @PhaseIndicator(phase = ProcessingPhase.SECOND) public class LoggerModel extends Model { private static fin

logback , JAVA , challenge

codecraft - 聊聊httpclient的ConnectionHolder

序 本文主要研究一下httpclient的ConnectionHolder ConnectionReleaseTrigger org/apache/http/conn/ConnectionReleaseTrigger.java /** * Interface for releasing a connection. This can be implemented by various * "tr

httpclient , JAVA , challenge

codecraft - 聊聊tomcat的keepAlive參數

序 本文主要研究一下tomcat的keepAlive參數 maxKeepAliveRequests org/apache/tomcat/util/net/AbstractEndpoint.java /** * Max keep alive requests */ private int maxKeepAliveRequests=100; // as in Apa

tomcat , JAVA , challenge

codecraft - 聊聊httpclient的connect

序 本文主要研究一下httpclient的connect HttpClientConnectionOperator org/apache/http/conn/HttpClientConnectionOperator.java public interface HttpClientConnectionOperator { void connect( ManagedH

httpclient , JAVA , challenge

codecraft - 聊聊httpclient的getPoolEntryBlocking

序 本文主要研究一下httpclient的getPoolEntryBlocking getPoolEntryBlocking org/apache/http/pool/AbstractConnPool.java private E getPoolEntryBlocking( final T route, final Object state,

httpclient , JAVA , challenge

codecraft - 聊聊httpclient的staleConnectionCheckEnabled

序 本文主要研究一下httpclient的staleConnectionCheckEnabled staleConnectionCheckEnabled org/apache/http/client/config/RequestConfig.java public class RequestConfig implements Cloneable { public static final

httpclient , JAVA , challenge

codecraft - 聊聊如何獲取PreparedStatement的參數

序 本文主要研究一下如何獲取PreparedStatement的參數 PreparedStatement java/sql/PreparedStatement.java public interface PreparedStatement extends Statement { void setNull(int parameterIndex, int sqlType) throws S

jdbc