Package org.agilewiki.jactor2.core.blades

Examples of org.agilewiki.jactor2.core.blades.NamedBlade


                _targetReactor);
    }

    @Override
    public CloseableImpl createCloseableImpl(final Closeable _closeable) {
        return new CloseableImplImpl(_closeable);
    }
View Full Code Here


import org.agilewiki.jactor2.core.requests.ExceptionHandler;
import org.agilewiki.jactor2.core.requests.impl.AsyncRequestImpl;

public class AnyMain {
    public static void main(final String[] _args) throws Exception {
        new Plant();
        try {
            System.out.println("\ntest 1");
            long x = new Any<Long>(new A2("1", 1), new A2("2", 2), new A2("3",
                    3)).call();
            System.out.println("got " + x);
View Full Code Here

        };
    }

    public static void main(final String[] _args) throws Exception {
        final long count = 10000L;
        new Plant(10);
        try {
            final Delays delays = new Delays(count);
            final AOp<Void> runAReq = delays.runAOp();
            final long before = System.currentTimeMillis();
            runAReq.call();
View Full Code Here

            }
        };
    }

    public static void main(final String[] _args) throws Exception {
        new Plant();
        try {
            final Account account1 = new Account();
            account1.depositSOp(1000).call();
            final Account account2 = new Account();
            System.out.println(account1.transferAOp(500, account2).call());
View Full Code Here

public class ExceptionHandlerSample {

    public static void main(final String[] _args) throws Exception {

        //A facility with two threads.
        new Plant(2);

        try {

            //Create an ExceptionBlade.
            ExceptionBlade exceptionBlade = new ExceptionBlade(new NonBlockingReactor());
View Full Code Here

import javax.swing.*;

public class SwingBoundReactorSample {
    public static void main(final String[] _args) throws Exception {
        //Create a plant with 5 threads.
        Plant plant = new Plant(5);

        new HelloWorld(new SwingBoundReactor()).createAndShowAOp().signal();
    }
View Full Code Here

public class RequestSample {

    public static void main(String[] args) throws Exception {

        //A facility with two threads.
        new Plant(2);

        try {

            //Create blades.
            SampleBlade2 bladeA = new SampleBlade2(new NonBlockingReactor());
View Full Code Here

import org.agilewiki.jactor2.core.requests.AsyncResponseProcessor;
import org.agilewiki.jactor2.core.requests.impl.AsyncRequestImpl;

public class Simple {
    public static void main(final String[] _args) throws Exception {
        new Plant();
        try {
            A a = new A();
            a.startAOp().call();
        } finally {
            Plant.close();
View Full Code Here

public class ThreadBoundReactorSample {

    public static void main(String[] args) throws Exception {

        //A plant with no threads.
        new Plant(0);

        //Get a reference to the main thread.
        final Thread mainThread = Thread.currentThread();

        //Create a thread-bound processing.
View Full Code Here

import org.agilewiki.jactor2.core.requests.AsyncResponseProcessor;
import org.agilewiki.jactor2.core.requests.impl.AsyncRequestImpl;

public class AllMain {
    public static void main(final String[] _args) throws Exception {
        new Plant();
        try {
            new All(new A1("1"), new A1("2"), new A1("3")).call();
        } finally {
            Plant.close();
        }
View Full Code Here

TOP

Related Classes of org.agilewiki.jactor2.core.blades.NamedBlade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.