Package ch.unifr.nio.framework.transform

Examples of ch.unifr.nio.framework.transform.DummyTrafficOutputForwarder


        // array sequence -> writer
        writer = new ChannelWriter(false/*direct*/);
        ByteBufferArraySequenceForwarder byteBufferArraySequenceForwarder =
                new ByteBufferArraySequenceForwarder();
        byteBufferArraySequenceForwarder.setNextForwarder(writer);
        DummyTrafficOutputForwarder dummyTrafficOutputTransformer =
                new DummyTrafficOutputForwarder(2);
        trafficShaperCoordinator = new TrafficShaperCoordinator(
                Executors.newSingleThreadScheduledExecutor(), 1, 1000, false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(
                byteBufferArraySequenceForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(
                dummyTrafficOutputTransformer);
View Full Code Here


        // stringToByteBuffer -> byteBufferToArray -> dummyTraffic ->
        // array sequence -> channelWriter
        ByteBufferArraySequenceForwarder byteBufferArraySequenceForwarder =
                new ByteBufferArraySequenceForwarder();
        byteBufferArraySequenceForwarder.setNextForwarder(channelWriter);
        DummyTrafficOutputForwarder dummyTrafficOutputTransformer =
                new DummyTrafficOutputForwarder(2);
        trafficShaperCoordinator = new TrafficShaperCoordinator(
                Executors.newSingleThreadScheduledExecutor(),
                Speed.SLOW.getPackageSize(), Speed.SLOW.getDelay(), false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(
                byteBufferArraySequenceForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer.setNextForwarder(
                dummyTrafficOutputTransformer);
View Full Code Here

         *
         * we add the following chain at sslOutput:
         *
         * stringToByteBuffer -> byteBufferToArray2 -> dummyTrafficOutput ->
         */
        DummyTrafficOutputForwarder dummyTrafficOutputTransformer =
                new DummyTrafficOutputForwarder(2);
        trafficShaperCoordinator = new TrafficShaperCoordinator(
                Executors.newSingleThreadScheduledExecutor(),
                Speed.SLOW.getPackageSize(), Speed.SLOW.getDelay(), false);
        trafficShaperCoordinator.addTrafficShaper(
                this, dummyTrafficOutputTransformer);
        dummyTrafficOutputTransformer.setNextForwarder(sslOutputForwarder);
        ByteBufferToArrayTransformer byteBufferToArrayTransformer2 =
                new ByteBufferToArrayTransformer();
        byteBufferToArrayTransformer2.setNextForwarder(
                dummyTrafficOutputTransformer);
        StringToByteBufferTransformer stringTransformer =
View Full Code Here

TOP

Related Classes of ch.unifr.nio.framework.transform.DummyTrafficOutputForwarder

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.