cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1497739 - /cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
Date Fri, 28 Jun 2013 11:26:32 GMT
Author: sergeyb
Date: Fri Jun 28 11:26:32 2013
New Revision: 1497739

URL: http://svn.apache.org/r1497739
Log:
Attempting to get a build working, adding a missing file to Netty transport

Added:
    cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
  (with props)

Added: cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java?rev=1497739&view=auto
==============================================================================
--- cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
(added)
+++ cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
Fri Jun 28 11:26:32 2013
@@ -0,0 +1,66 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.transport.http.netty.server;
+
+/**
+ * This class holds a structure that contains parameters
+ * pertaining to the threading of a Jetty HTTP Server Engine.
+ */
+public class ThreadingParameters {
+
+    private int threadPoolSize;
+    private int minThreads;
+    private int maxThreads;
+    private boolean minThreadsSet;
+    private boolean maxThreadsSet;
+    
+    public void setMinThreads(int number) {
+        minThreadsSet = true;
+        minThreads = number;
+    }
+    
+    public void setMaxThreads(int number) {
+        maxThreadsSet = true;
+        maxThreads = number;
+    }
+    
+    public int getMinThreads() {
+        return minThreads;
+    }
+    
+    public int getMaxThreads() {
+        return maxThreads;
+    }
+    
+    public boolean isSetMaxThreads() {
+        return maxThreadsSet;
+    }
+    
+    public boolean isSetMinThreads() {
+        return minThreadsSet;
+    }
+
+    public int getThreadPoolSize() {
+        return threadPoolSize;
+    }
+
+    public void setThreadPoolSize(int threadPoolSize) {
+        this.threadPoolSize = threadPoolSize;
+    }
+}

Propchange: cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/ThreadingParameters.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message