diff --git a/eventbus/src/main/java/com/epita/eventbus/EventBusClient.java b/eventbus/src/main/java/com/epita/eventbus/EventBusClient.java index 6536102..680e4fb 100644 --- a/eventbus/src/main/java/com/epita/eventbus/EventBusClient.java +++ b/eventbus/src/main/java/com/epita/eventbus/EventBusClient.java @@ -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. * diff --git a/eventbus/src/main/java/com/epita/eventbus/NettyEventBusClient.java b/eventbus/src/main/java/com/epita/eventbus/NettyEventBusClient.java index 4060116..3edbc42 100644 --- a/eventbus/src/main/java/com/epita/eventbus/NettyEventBusClient.java +++ b/eventbus/src/main/java/com/epita/eventbus/NettyEventBusClient.java @@ -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;