Recent Posts

Go - Assignments

Tuple Assignment Type Assertion Need use interface{} to declare a variable Check concrete type by v,ok := x.(T)  If type "T" can't be assigned ...

Go - Declare Pointers

A pointer value is the address of a variable Declare a variable, declare a value, assign address to that variable Variable address declared in functi...

Go - Declare Variables

Declaration Declare package Declare import var/const/func/type can be declared in any order Variables Declare variables with the same type a...

Go - helloworld in eclipse

Introduction When trying the first helloworld, I encountered some problem to setup environment. So note here. You can find manual for complete informati...

Spring Integration - Header Enricher

Reference Pro Spring Integration - https://www.amazon.com/Pro-Spring-Integration-Experts-Voice-ebook-dp-B005PZ29OA/dp/B005PZ29OA/ref=mt_kindle?_encodi...

Spring Integration - Transformations

Reference Pro Spring Integration - https://www.amazon.com/Pro-Spring-Integration-Experts-Voice-ebook-dp-B005PZ29OA/dp/B005PZ29OA/ref=mt_kindle?_enc...

Spring Integration - Channels

Reference Pro Spring Integration - https://www.amazon.com/Pro-Spring-Integration-Experts-Voice-ebook-dp-B005PZ29OA/dp/B005PZ29OA/ref=mt_kindle?_enco...

RabbitMQ Example

Reference https://www.rabbitmq.com/install-windows.html  https://www.rabbitmq.com/tutorials/tutorial-one-java.html https://github.com/shooeugenesea/...

Google Protobuf - Basic Example

Reference Protobuf - Java Code in Github Example Install protobuf Download from Git: https://github.com/protocolbuffers/protobuf Install protobuf ...

Spring Integration - Basic Terms

Reference Spring Integration Basic Terms 後篇: https://www.isaacnote.com/2018/10/spring-integration-channels.html  Terms org.springframework.inte...

ForkJoinPool - Thread Management

Reference ForkJoinPoolManyThreadMain.java ForkJoinPool Paper ForkJoinPool - Error Handling Question 原本以為 new ForkJoinPool(2) 像這樣的宣告, 是讓 ForkJoinPool 最多維...

ForkJoinPool - Error Handling

Reference Git: ForkJoinPoolErrorMain.java 前篇: ForkJoinPool - Workstealing Next: ForkJoinPool - Thread Management Error Handling 如果 fork 出去...

ForkJoinPool - Work stealing

Reference https://en.wikipedia.org/wiki/Work_stealing 前篇: Java Concurrency - ForkJoinPool 的 deadlock 下篇: ForkJoinPool - Error Handling Introduction Fork...

Java Concurrent - ForkJoinPool

ExecutorService and Problem 用一個 ExecutorService submit task 後, 如果 task 會 submit 其他的 task, 這些 task 都會放進 ExecutorService 的 queue 中. 這樣就沒辦法做到 "第一個 task 與其產生的...