All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.akurilov.fiber4j.example.HelloWorldExclusiveFiber Maven / Gradle / Ivy

The newest version!
package com.github.akurilov.fiber4j.example;

import com.github.akurilov.fiber4j.FibersExecutor;
import com.github.akurilov.fiber4j.ExclusiveFiberBase;

import java.io.IOException;

/**
 * Created by andrey on 23.08.17.
 */
public class HelloWorldExclusiveFiber
extends ExclusiveFiberBase {

	public HelloWorldExclusiveFiber(final FibersExecutor executor) {
		super(executor);
	}

	@Override
	protected void invokeTimedExclusively(long startTimeNanos) {
		System.out.println("Hello world!");
	}

	@Override
	protected void doClose()
	throws IOException {

	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy