View Javadoc
1   // Copyright (c) Microsoft Corporation. All rights reserved.
2   // Licensed under the MIT License.
3   
4   package com.microsoft.azure.eventhubs.jproxy;
5   
6   import java.io.IOException;
7   import java.util.function.Consumer;
8   
9   public interface ProxyServer {
10  
11      static ProxyServer create(final String hostName, final int port) {
12          return new SimpleProxy(hostName, port);
13      }
14  
15      void start(Consumer<Throwable> onError) throws IOException;
16  
17      void stop() throws IOException;
18  }