Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
af9d8933
Commit
af9d8933
authored
Nov 21, 2015
by
Christian Schudt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unused IOExecutor.java
parent
c4e2f94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
68 deletions
+0
-68
IOExecutor.java
src/java/org/jivesoftware/openfire/net/IOExecutor.java
+0
-68
No files found.
src/java/org/jivesoftware/openfire/net/IOExecutor.java
deleted
100644 → 0
View file @
c4e2f94c
/**
* $RCSfile$
* $Revision: $
* $Date: $
*
* Copyright (C) 2005-2008 Jive Software. All rights reserved.
*
* Licensed 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
.
jivesoftware
.
openfire
.
net
;
import
org.jivesoftware.util.JiveGlobals
;
import
java.util.concurrent.LinkedBlockingQueue
;
import
java.util.concurrent.ThreadPoolExecutor
;
import
java.util.concurrent.TimeUnit
;
/**
* Thread pool to be used for processing incoming packets when using non-blocking
* connections.
*
* // TODO Change thead pool configuration. Would be nice to have something that can be
* // TODO dynamically adjusted to demand and circumstances.
*
* @author Daniele Piras
*/
class
IOExecutor
{
// SingleTon ...
protected
static
IOExecutor
instance
=
new
IOExecutor
();
// Pool obj
protected
ThreadPoolExecutor
executeMsgPool
;
// Internal queue for the pool
protected
LinkedBlockingQueue
<
Runnable
>
executeQueue
;
/*
* Simple constructor that initialize the main executor structure.
*
*/
protected
IOExecutor
()
{
// Read poolsize parameter...
int
poolSize
=
JiveGlobals
.
getIntProperty
(
"tiscali.pool.size"
,
15
);
// Create queue for executor
executeQueue
=
new
LinkedBlockingQueue
<>(
10000
);
// Create executor
executeMsgPool
=
new
ThreadPoolExecutor
(
poolSize
,
poolSize
,
60
,
TimeUnit
.
SECONDS
,
executeQueue
);
}
public
static
void
execute
(
Runnable
task
)
{
instance
.
executeMsgPool
.
execute
(
task
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment