public SimpleRest(GreenRuntime runtime, int maxResponseCount, int maxResponseSize) { responseService = runtime .newCommandChannel() .newHTTPResponseService(maxResponseCount, maxResponseSize); }
public RestBehaviorEmptyResponse(GreenRuntime runtime, long nameFieldId, AppendableProxy console) { this.nameFieldId = nameFieldId; this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public RestBehaviorLargeResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public ProductsBehavior(GreenRuntime runtime, int maxProductId) { responseService = runtime.newCommandChannel().newHTTPResponseService(4,256); names = new StringBuilder[maxProductId+1]; int i = names.length; while (--i>=0) { names[i] = new StringBuilder(); } quantity = new long[maxProductId+1]; disabled = new boolean[maxProductId+1]; }
public ShutdownRestListener(GreenRuntime runtime, long keyFieldId) { this.newCommandChannel = runtime.newCommandChannel(); this.responseService = newCommandChannel.newHTTPResponseService(); this.keyFieldId = keyFieldId; }
public RestBehaviorLargeResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public RestBehaviorSmallResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(128,400); this.console = console; }
public ShutdownRestListener(GreenRuntime runtime) { this.newCommandChannel = runtime.newCommandChannel(); this.responseService = newCommandChannel.newHTTPResponseService(); }
public ShutdownBehavior(GreenRuntime runtime, long keyFieldId) { this.keyFieldId = keyFieldId; this.channel = runtime.newCommandChannel().newHTTPResponseService(1000,100); }
public RestBehaviorSmallResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public RestBehaviorEmptyResponse(GreenRuntime runtime,AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(); this.console = console; }
public RestBehaviorJsonResponce(GreenRuntime runtime, AppendableProxy console) { responseService = runtime.newCommandChannel().newHTTPResponseService(4, 1<<10); }
public InternalService(GreenRuntime runtime) { responseService = runtime.newCommandChannel().newHTTPResponseService(4,400); }
public RestResponder(GreenRuntime runtime) { responseService = runtime.newCommandChannel().newHTTPResponseService(4,400); }
public DBRest(GreenRuntime runtime, PgPoolOptions options, int pipelineBits, int maxResponseCount, int maxResponseSize) { pm = new PoolManager(options); HTTPResponseService service = runtime.newCommandChannel().newHTTPResponseService(maxResponseCount, maxResponseSize); processUpdate = new ProcessUpdate(pipelineBits, service, pm); processFortune = new ProcessFortune(pipelineBits, service, pm); processQuery = new ProcessQuery(pipelineBits, service, pm); }