Package reactor.core

Examples of reactor.core.Environment


    public static final String CLOUDBREAK_EVENT = "CLOUDBREAK_EVENT";

    @Bean
    public Environment env() {
        return new Environment();
    }
View Full Code Here


  private Environment environment;
  private Reactor defaultEventLoopReactor;

  @PostConstruct
  public void init() {
    environment = new Environment();
    defaultEventLoopReactor = Reactors.reactor().env(environment).dispatcher(Environment.EVENT_LOOP).get();

    defaultEventLoopReactor.on($("request"),
        new Consumer<Event<RequestContext>>() {
View Full Code Here

   * @param codec the codec to use for encoding and decoding the TCP stream
   */
  public Reactor11TcpClient(String host, int port, Codec<Buffer, Message<P>, Message<P>> codec) {

    // Revisit in 1.1: is Environment still required w/ sync dispatcher?
    this.environment = new Environment(new SynchronousDispatcherConfigReader());

    this.tcpClient = new TcpClientSpec<Message<P>, Message<P>>(REACTOR_TCP_CLIENT_TYPE)
        .env(this.environment)
        .codec(codec)
        .connect(host, port)
View Full Code Here

  @Before
  public void setup() {
    pool = Executors.newCachedThreadPool();
    counter = new LongAdder();
    env = new Environment();
  }
View Full Code Here

  Environment     env;
  ExecutorService threadPool;

  @Before
  public void setup() {
    env = new Environment();
    threadPool = Executors.newCachedThreadPool();
  }
View Full Code Here

  int                     heartbeatServerPort;
  HeartbeatServer         heartbeatServer;

  @Before
  public void setup() {
    env = new Environment();

    echoServerPort = SocketUtils.findAvailableTcpPort();
    echoServer = new EchoServer(echoServerPort);
    threadPool.submit(echoServer);
View Full Code Here

  Environment  env;
  ForkJoinPool fjp;

  @Before
  public void setup() {
    env = new Environment();
    fjp = new ForkJoinPool(env);
  }
View Full Code Here

  @BeforeClass
  public static void classSetup() {
    KRYO = new Kryo();
    KRYO_CODEC = new KryoCodec<>(KRYO, false);
    ZMQ = new ZeroMQ<Data>(new Environment()).codec(KRYO_CODEC);
  }
View Full Code Here

  AtomicLong start = new AtomicLong();
  AtomicLong end   = new AtomicLong();

  @Before
  public void loadEnv() {
    env = new Environment();
    latch = new CountDownLatch(msgs * threads);
  }
 
View Full Code Here

  AtomicLong start = new AtomicLong();
  AtomicLong end   = new AtomicLong();

  @Before
  public void loadEnv() {
    env = new Environment();
    latch = new CountDownLatch(msgs * threads);
  }
 
View Full Code Here

TOP

Related Classes of reactor.core.Environment

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.