Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “After submitting the tasks, we use task1.get()
and task2.get()
to wait for both tasks to complete. The get()
method blocks until the task is finished and returns the result.”
A block of code is set as follows:
import java.util.stream.IntStream; public class ParallelKitchen { public static void main(String[] args) { IntStream.range(0, 10).parallel().forEach(i -> { System.out.println(“Cooking dish #” + i + “ in parallel...”); // Simulate task try { Thread.sleep(600); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } }); } }
Any command-line input or output is written as follows:
aws cloudformation describe-stacks --stack-name <your-stack-name>
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Authentication: Verify user credentials and issue secure tokens (e.g., JWTs) for access.”
Tips or important notes
Appear like this.