Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu GICQUEL
GTD Server
Commits
40afdf14
Commit
40afdf14
authored
Apr 14, 2021
by
ducanh-le
Browse files
Instantiated GTDServerWithReactor class. Ref
#42
parent
aadf1487
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtd-server-main/src/main/java/fr/alma/gtd/server/main/GTDServerWithReactor.java
View file @
40afdf14
...
@@ -6,6 +6,7 @@ import fr.alma.gtd.server.main.commande.Command;
...
@@ -6,6 +6,7 @@ import fr.alma.gtd.server.main.commande.Command;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.LinkedBlockingQueue
;
// TODO: this class should implement all main methods.
// TODO: this class should implement all main methods.
...
@@ -16,10 +17,18 @@ import java.util.concurrent.BlockingQueue;
...
@@ -16,10 +17,18 @@ import java.util.concurrent.BlockingQueue;
*/
*/
public
class
GTDServerWithReactor
implements
GTDServer
{
public
class
GTDServerWithReactor
implements
GTDServer
{
// FIXME: This field should be instantiated
private
static
GTDServer
instance
=
new
GTDServerWithReactor
();
private
BlockingQueue
<
Command
>
arrivingCalls
;
private
BlockingQueue
<
Command
>
arrivingCalls
;
private
GTDServerWithReactor
()
{
super
();
arrivingCalls
=
new
LinkedBlockingQueue
<
Command
>();
}
public
static
GTDServer
getInstance
()
{
return
instance
;
}
@Override
@Override
public
void
createAccount
(
String
username
,
String
password
,
String
pseudo
,
CallBack
<
String
>
callback
)
{
public
void
createAccount
(
String
username
,
String
password
,
String
pseudo
,
CallBack
<
String
>
callback
)
{
...
...
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