Guide to java.util.concurrent.BlockingQueue
1. Overview In this article, we will look at one of the most useful constructs java.util.concurrent to solve the concurrent producer-consumer problem. We’ll look at an API of the BlockingQueue...
View ArticleIntro to Dropwizard Metrics
1. Introduction Metrics is a Java library which provides measuring instruments for Java applications. It has several modules, and in this article, we will elaborate metrics-core module,...
View ArticleApache Maven Tutorial
1. Introduction Building a software project typically consists of such tasks as downloading dependencies, putting additional jars on a classpath, compiling source code into binary code, running tests,...
View ArticleCORS with Spring
1. Overview In any modern browser, Cross-Origin Resource Sharing (CORS) is a relevant specification with the emergence of HTML5 and JS clients that consume data via REST APIs. In many cases, the host...
View ArticleQuerying Couchbase with MapReduce Views
1. Overview In this tutorial, we will introduce some simple MapReduce views and demonstrate how to query them using the Couchbase Java SDK. 2. Maven Dependency To work with Couchbase in a Maven...
View ArticleA Guide to Spring Mobile
1. Overview Spring Mobile is a modern extension to the popular Spring Web MVC framework that helps to simplify the development of web applications, which needs to be fully or partially compatible...
View ArticleGuide to Guava Table
1. Overview In this tutorial, we’ll show how to use the Google Guava’s Table interface and its multiple implementations. Guava’s Table is a collection that represents a table like structure containing...
View ArticleGuide to java.util.concurrent.Future
1. Overview In this article, we are going to learn about Future. An interface that’s been around since Java 1.5 and can be quite useful when working with asynchronous calls and concurrent processing....
View ArticleBuilding an API With the Spark Java Framework
1. Introduction In this article, we will have a quick introduction to Spark framework. Spark framework is a rapid development web framework inspired by the Sinatra framework for Ruby and is built...
View ArticleJava 9 Convenience Factory Methods for Collections
1. Overview Java 9 brings the long awaited syntactic sugar for creating small unmodifiable Collection instances using a concise one line code. As per JEP 269, new convenience factory methods will be...
View ArticleGuide to Try in Javaslang
1. Overview In this article, we will look at a functional way of error handling other than a standard try-catch block. We will be using Try class from Javaslang library that will allow us to create...
View ArticleGuide to Guava’s Ordering
1. Overview In this article, we will look at Ordering class from the Guava library. Ordering class implements a Comparator interface and gives us a useful fluent API for creating and chaining...
View ArticleJava Web Weekly, Issue 162
Lots of weekend reading for this week. Let’s jump right in… 1. Spring and Java >> Java 9 Enters First Bug Fixing Round [infoq.com] Java 9 vs Bugs – the first round >> Compilation of Java...
View ArticleA Guide to ConcurrentMap
1. Overview Maps are naturally one of the most widely style of Java collection. And, importantly, HashMap is not a thread-safe implementation, while Hashtable does provide thread-safety by...
View ArticleConstructor Injection in Spring with Lombok
1. Introduction Lombok is an extremely useful library overcoming boilerplate code. If you are not familiar with it yet, I highly recommend taking a look at the previous tutorial – Introduction to...
View ArticleWorking with Apache Thrift
1. Overview In this article, we will discover how to develop cross-platform client-server applications with the help of RPC framework called Apache Thrift. We will cover: Defining data types and...
View ArticleGuide to Guava’s PreConditions
1. Overview In this tutorial, we’ll show how to use the Google Guava’s Preconditions class. The Preconditions class provides a list of static methods for checking that a method or a constructor is...
View ArticleDealing with Backpressure with RxJava
1. Overview In this article, we will look at the way the RxJava library helps us to handle backpressure. Simply put – RxJava utilizes a concept of reactive streams by introducing Observables, to which...
View ArticleGuide to PriorityBlockingQueue in Java
1. Introduction In this article, we’ll focus on the PriorityBlockingQueue class and go over some practical examples. Starting with the assumption that we already know what a Queue is, we will first...
View ArticleSpring @RequestMapping New Shortcut Annotations
1. Overview Spring 4.3. introduced some very cool method-level composed annotations to smooth out the handling @RequestMapping in typical Spring MVC projects. In this article, we will learn how to use...
View Article