Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
08d11d9e
Commit
08d11d9e
authored
9 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
extracted default capacity as constant
parent
91629b5b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/framework/ConfigurationContext.java
+4
-2
4 additions, 2 deletions
src/main/java/teetime/framework/ConfigurationContext.java
with
4 additions
and
2 deletions
src/main/java/teetime/framework/ConfigurationContext.java
+
4
−
2
View file @
08d11d9e
...
@@ -31,6 +31,8 @@ import teetime.framework.pipe.InstantiationPipe;
...
@@ -31,6 +31,8 @@ import teetime.framework.pipe.InstantiationPipe;
*/
*/
public
final
class
ConfigurationContext
{
public
final
class
ConfigurationContext
{
private
static
final
int
DEFAULT_CAPACITY
=
4
;
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ConfigurationContext
.
class
);
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ConfigurationContext
.
class
);
private
final
Set
<
Stage
>
threadableStages
=
new
HashSet
<
Stage
>();
private
final
Set
<
Stage
>
threadableStages
=
new
HashSet
<
Stage
>();
...
@@ -54,7 +56,7 @@ public final class ConfigurationContext {
...
@@ -54,7 +56,7 @@ public final class ConfigurationContext {
}
}
/**
/**
* Connects two ports with a pipe with a default capacity of currently
4
* Connects two ports with a pipe with a default capacity of currently
{@value #DEFAULT_CAPACITY}.
*
*
* @param sourcePort
* @param sourcePort
* {@link OutputPort} of the sending stage
* {@link OutputPort} of the sending stage
...
@@ -64,7 +66,7 @@ public final class ConfigurationContext {
...
@@ -64,7 +66,7 @@ public final class ConfigurationContext {
* the type of elements to be sent
* the type of elements to be sent
*/
*/
final
<
T
>
void
connectPorts
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
final
<
T
>
void
connectPorts
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
connectPorts
(
sourcePort
,
targetPort
,
4
);
connectPorts
(
sourcePort
,
targetPort
,
DEFAULT_CAPACITY
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment