Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SimpleServerSocketFactory |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.transport.tcp; | |
8 | ||
9 | import java.io.IOException; | |
10 | import java.net.InetAddress; | |
11 | import java.net.ServerSocket; | |
12 | import java.net.URI; | |
13 | ||
14 | public interface SimpleServerSocketFactory | |
15 | { | |
16 | ||
17 | /** | |
18 | * @param uri The address and port to connect to | |
19 | * @param backlog The backlog (or {@link org.mule.api.transport.Connector#INT_VALUE_NOT_SET}) | |
20 | * @param reuse Whether to reuse addresses (null for default) | |
21 | * @return A new, bound server socket | |
22 | * @throws IOException | |
23 | */ | |
24 | ServerSocket createServerSocket(URI uri, int backlog, Boolean reuse) throws IOException; | |
25 | ||
26 | ServerSocket createServerSocket(InetAddress address, int port, int backlog, Boolean reuse) throws IOException; | |
27 | ||
28 | ServerSocket createServerSocket(int port, int backlog, Boolean reuse) throws IOException; | |
29 | ||
30 | } |