Skip to content

Instantly share code, notes, and snippets.

@cyberdak
cyberdak / callback hell.java
Created April 20, 2022 08:51
callback hell
package com.bj58.loc.service.util;
import com.google.common.util.concurrent.*;
import org.jetbrains.annotations.Nullable;
import java.util.concurrent.*;
public class ListenableFutureLearn {
private static final int processors = Runtime.getRuntime().availableProcessors();
import dev.failsafe.Failsafe;
import dev.failsafe.RetryPolicy;
import dev.failsafe.RetryPolicyBuilder;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
@Slf4j
0xb0c76b861C32534df595F16b3799C8369902dbae
@cyberdak
cyberdak / Test.java
Last active September 3, 2016 01:09
network class loader test
public class Test {
public void testFunction(){
System.out.println("test function");
}
public Test(){
System.out.println("test con");
}
public static void main(String[] args) {
System.out.println("main");
@cyberdak
cyberdak / Notes.md
Created August 30, 2016 14:56 — forked from chrisvest/Notes.md
PrintCompilation on different versions of HotSpot VM

About PrintCompilation

This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.

Written by: Kris Mok rednaxelafx@gmail.com

Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.

This