Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
add start method to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
T4ze committed Dec 9, 2017
1 parent 8059a76 commit d8b696e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 9 additions & 0 deletions eventbus/src/main/java/com/epita/eventbus/EventBusClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
@SuppressWarnings("unused")
public interface EventBusClient {

/**
* Start the client
*
* @param host The host of the server
* @param port The port of the server
* @return Whether or not the run succeed
*/
boolean start(final String host, final int port);

/**
* Subscribe to the given channel.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ public NettyEventBusClient() {
nettyChannel = null;
}

/**
* Start the EvenBusClient
*
* @return Whether or not the run succeed
*/
public boolean run(final String host, final int port) {
@Override
public boolean start(final String host, final int port) {
if (nettyChannel != null)
return false;

Expand Down

0 comments on commit d8b696e

Please sign in to comment.