Tag

Handler

0 views collected around this technical thread.

Architect's Guide
Architect's Guide
Nov 14, 2024 · Backend Development

Implementing the Chain of Responsibility Pattern for Product Validation in Java

This article explains the Chain of Responsibility design pattern, demonstrates its application in a product creation workflow with concrete Java code, shows how to configure and assemble handlers dynamically using Spring, and discusses the pattern's advantages, drawbacks, and testing scenarios.

HandlerJavaSpring
0 likes · 20 min read
Implementing the Chain of Responsibility Pattern for Product Validation in Java
Sohu Tech Products
Sohu Tech Products
Sep 25, 2024 · Mobile Development

Crash Convergence and Resilience Mechanisms in Android Applications

The team maintains an ‘opt’ branch for daily‑collected crash fixes, classifies unrecoverable system, device, SDK and framework errors, and employs a Handler‑based whitelist that catches and swallows known crashes while logging others, complemented by null‑safety, concurrency, database and OOM monitoring to keep Android app crash rates manageable.

AndroidCrash HandlingException
0 likes · 18 min read
Crash Convergence and Resilience Mechanisms in Android Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 24, 2024 · Backend Development

Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go

This article explains how Go's net/http package leverages function types combined with interfaces—particularly the Handler and HandlerFunc types—to create concise, flexible HTTP servers, reducing boilerplate, improving code reuse and testability, and demonstrates practical examples and underlying implementations.

GoHandlerbackend development
0 likes · 9 min read
Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go
360 Quality & Efficiency
360 Quality & Efficiency
Mar 26, 2021 · Operations

Deploying a Code Clone Detection Model with TorchServe

This article explains how to build a code clone detection service using a CodeBERT classification model, create a custom TorchServe handler, package the model with torch-model-archiver, launch the service, and test it with example code pairs to demonstrate clone and non‑clone predictions.

HandlerModel DeploymentPyTorch
0 likes · 8 min read
Deploying a Code Clone Detection Model with TorchServe
vivo Internet Technology
vivo Internet Technology
Nov 18, 2020 · Mobile Development

In‑Depth Analysis of Android Handler Mechanism, Looper, MessageQueue and Their Practical Applications

The article dissects Android’s Handler‑Looper‑MessageQueue architecture, explaining ThreadLocal‑based Looper binding, various Handler constructors, async versus sync messages, barrier handling, IdleHandler, HandlerThread and IntentService usage, and the differences between Handler.post and View.post for responsive UI development.

AndroidHandlerLooper
0 likes · 29 min read
In‑Depth Analysis of Android Handler Mechanism, Looper, MessageQueue and Their Practical Applications
Sohu Tech Products
Sohu Tech Products
May 13, 2020 · Mobile Development

Analyzing and Fixing Memory Leaks in Android DialogFragment

This article examines why DialogFragment can cause memory leaks in Android apps, analyzes the role of HandlerThread messages and Looper processing, and presents several mitigation strategies including avoiding dismiss listeners, using weak references, and custom fragment implementations to safely release resources.

AndroidDialogFragmentHandler
0 likes · 11 min read
Analyzing and Fixing Memory Leaks in Android DialogFragment
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Apr 28, 2020 · Backend Development

How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction

This article explains Netty's channel pipeline lifecycle—including how the responsibility chain is created during channel initialization, how handlers are added and removed, and how the pipeline is torn down during channel closure—while providing detailed source‑code excerpts and diagrams to illustrate each step.

ChannelPipelineEventLoopHandler
0 likes · 16 min read
How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 31, 2019 · Databases

Understanding MySQL Handler_read_* Status Variables and Their Impact on Query Execution

This article explains the internal representation and meaning of MySQL Handler_read_* status variables, demonstrates how InnoDB implements each handler, and shows practical query tests that illustrate how these counters reflect full table scans, index scans, range scans, and join operations.

HandlerInnoDBMySQL
0 likes · 18 min read
Understanding MySQL Handler_read_* Status Variables and Their Impact on Query Execution
Sohu Tech Products
Sohu Tech Products
Sep 25, 2019 · Mobile Development

Understanding Android Handler, Looper, and MessageQueue: Design and Implementation

This article explains the design and implementation of Android's Handler mechanism, detailing how Handlers, Messages, MessageQueue, and Looper work together to enable thread communication, avoid memory leaks, and manage message sending, queuing, and processing, with source code examples and best practices.

AndroidHandlerLooper
0 likes · 21 min read
Understanding Android Handler, Looper, and MessageQueue: Design and Implementation
Tencent Music Tech Team
Tencent Music Tech Team
Jan 19, 2018 · Mobile Development

Analyzing and Solving Android Toast Issues with Snackbar and View System

The article examines Android Toast crashes, explains the system‑level window and drawing lifecycle, and proposes safer alternatives by replacing Toast with a Snackbar or custom view hierarchy, using parent‑finding logic, weak‑reference management, and a protective handler wrapper to prevent exceptions.

AndroidHandlerLifecycle
0 likes · 17 min read
Analyzing and Solving Android Toast Issues with Snackbar and View System