public class ReactorBuilder extends Object
Constructor and Description |
---|
ReactorBuilder(ManagedContext context) |
public ReactorBuilder(ManagedContext context)
public ReactorBuilder withPollable(Pollable pollable, LoopHandler handler)
public ReactorBuilder withInPollable(Socket socket, LoopHandler handler)
public ReactorBuilder withOutPollable(Socket socket, LoopHandler handler)
public ReactorBuilder withErrorPollable(Socket socket, LoopHandler handler)
public ReactorBuilder withInOutPollable(Socket socket, LoopHandler handler)
public ReactorBuilder withAllPollable(Socket socket, LoopHandler handler)
public ReactorBuilder withInPollable(SelectableChannel channel, LoopHandler handler)
public ReactorBuilder withOutPollable(SelectableChannel channel, LoopHandler handler)
public ReactorBuilder withErrorPollable(SelectableChannel channel, LoopHandler handler)
public ReactorBuilder withInOutPollable(SelectableChannel channel, LoopHandler handler)
public ReactorBuilder withAllPollable(SelectableChannel channel, LoopHandler handler)
public ReactorBuilder withTimer(long initialDelay, int numIterations, LoopHandler handler)
public ReactorBuilder withTimerOnce(long initialDelay, LoopHandler handler)
public ReactorBuilder withTimerOnce(long initialDelay, TimeUnit unit, LoopHandler handler)
public ReactorBuilder withTimerRepeating(long initialDelay, LoopHandler handler)
public ReactorBuilder withTimerRepeating(long initialDelay, TimeUnit unit, LoopHandler handler)
public Reactor build()
public void start()
public void run()
Copyright © 2019. All rights reserved.