Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tp-4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirkl-poo-2018
tp-4
Commits
2e81736a
Commit
2e81736a
authored
6 years ago
by
Alexis Durgnat
Browse files
Options
Downloads
Patches
Plain Diff
Meeting events
parent
7669ff84
Branches
Branches containing commit
No related tags found
1 merge request
!21
*poof* final version
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/ch/hepia/mq/Message.java
+1
-1
1 addition, 1 deletion
src/main/java/ch/hepia/mq/Message.java
src/main/java/ch/hepia/mq/MessageManager.java
+8
-0
8 additions, 0 deletions
src/main/java/ch/hepia/mq/MessageManager.java
with
9 additions
and
1 deletion
src/main/java/ch/hepia/mq/Message.java
+
1
−
1
View file @
2e81736a
...
...
@@ -3,7 +3,7 @@ import java.io.Serializable;
public
final
class
Message
implements
Serializable
{
public
static
enum
Type
{
JoinedJourney
,
LeftJourney
,
ChatMessage
JoinedJourney
,
LeftJourney
,
ChatMessage
,
Meeting
}
private
static
final
long
serialVersionUID
=
0xAEF34565673
L
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/ch/hepia/mq/MessageManager.java
+
8
−
0
View file @
2e81736a
...
...
@@ -80,6 +80,14 @@ public class MessageManager extends MessageQueue {
this
.
conditionalSubscribe
(
Message
.
Type
.
JoinedJourney
,
eventHandler
,
condition
);
}
/**
* Subscribe to Meetings events
* @param eventHandler Meeting consumer
* @param condition Meeting predicate
*/
public
void
conditionalSubscribeMeeting
(
Consumer
<
Meeting
>
eventHandler
,
Predicate
<
Meeting
>
condition
)
{
this
.
conditionalSubscribe
(
Message
.
Type
.
Meeting
,
eventHandler
,
condition
);
}
/**
* Subscribe to LeftJourney events validating the condition
* @param eventHandler LeftJourney consumer
...
...
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