Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
320b4a92
Commit
320b4a92
authored
12 years ago
by
anttil
Browse files
Options
Downloads
Patches
Plain Diff
BIS-298 / SP-447: Refactor for clarity: No payload means: an exception has occured here.
SVN: 28062
parent
a4d0ee16
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
common/source/java/ch/systemsx/cisd/common/serviceconversation/client/ClientResponseMessageQueue.java
+4
-4
4 additions, 4 deletions
...erviceconversation/client/ClientResponseMessageQueue.java
with
4 additions
and
4 deletions
common/source/java/ch/systemsx/cisd/common/serviceconversation/client/ClientResponseMessageQueue.java
+
4
−
4
View file @
320b4a92
...
@@ -24,8 +24,8 @@ import ch.systemsx.cisd.common.serviceconversation.IServiceMessageTransport;
...
@@ -24,8 +24,8 @@ import ch.systemsx.cisd.common.serviceconversation.IServiceMessageTransport;
import
ch.systemsx.cisd.common.serviceconversation.ServiceMessage
;
import
ch.systemsx.cisd.common.serviceconversation.ServiceMessage
;
/**
/**
* A class that holds a queue for response messages to a client.
* A class that holds a queue for response messages to a client.
*
*
* @author Bernd Rinn
* @author Bernd Rinn
*/
*/
class
ClientResponseMessageQueue
implements
IServiceMessageTransport
class
ClientResponseMessageQueue
implements
IServiceMessageTransport
...
@@ -39,7 +39,7 @@ class ClientResponseMessageQueue implements IServiceMessageTransport
...
@@ -39,7 +39,7 @@ class ClientResponseMessageQueue implements IServiceMessageTransport
{
{
return
messageQueue
.
poll
(
timeoutMillis
,
TimeUnit
.
MILLISECONDS
);
return
messageQueue
.
poll
(
timeoutMillis
,
TimeUnit
.
MILLISECONDS
);
}
}
@Override
@Override
public
void
send
(
ServiceMessage
message
)
public
void
send
(
ServiceMessage
message
)
{
{
...
@@ -50,7 +50,7 @@ class ClientResponseMessageQueue implements IServiceMessageTransport
...
@@ -50,7 +50,7 @@ class ClientResponseMessageQueue implements IServiceMessageTransport
{
{
messageIdxLastSeen
=
message
.
getMessageIdx
();
messageIdxLastSeen
=
message
.
getMessageIdx
();
}
}
if
(
message
.
hasPayload
()
==
false
)
if
(
message
.
isException
()
)
{
{
messageQueue
.
clear
();
messageQueue
.
clear
();
}
}
...
...
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