Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
hosting
chat
fairblue
Commits
4745b0e3
Commit
4745b0e3
authored
13 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- run pubsub listener on own thread
parent
01669ce4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bigbluebutton-web/src/java/org/bigbluebutton/api/messaging/RedisMessagingService.java
+15
-8
15 additions, 8 deletions
...rg/bigbluebutton/api/messaging/RedisMessagingService.java
with
15 additions
and
8 deletions
bigbluebutton-web/src/java/org/bigbluebutton/api/messaging/RedisMessagingService.java
+
15
−
8
View file @
4745b0e3
package
org.bigbluebutton.api.messaging
;
import
java.io.IOException
;
import
java.net.UnknownHostException
;
import
java.util.HashSet
;
import
java.util.Map
;
import
java.util.Set
;
...
...
@@ -18,7 +19,6 @@ public class RedisMessagingService implements MessagingService {
private
final
Executor
exec
=
Executors
.
newSingleThreadExecutor
();
private
Runnable
pubsubListener
;
private
volatile
boolean
listen
=
false
;
public
RedisMessagingService
(
String
host
,
int
port
)
{
this
.
host
=
host
;
...
...
@@ -57,14 +57,21 @@ public class RedisMessagingService implements MessagingService {
@Override
public
void
start
()
{
jedis
=
new
Jedis
(
host
,
port
,
0
);
if
(
jedis
!=
null
)
{
//
listen = true
;
//
pubsubListener = new Runnable() {
//
public void run() {
try
{
jedis
.
connect
()
;
pubsubListener
=
new
Runnable
()
{
public
void
run
()
{
jedis
.
psubscribe
(
new
PubSubListener
(),
"bigbluebutton:conference:*"
);
// }
// };
// exec.execute(pubsubListener);
}
};
exec
.
execute
(
pubsubListener
);
}
catch
(
UnknownHostException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
...
...
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