blob: 9872bb63eaf1b559b568248b02a2c52d1d3c3bbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.io;
/**
* @author <a href="mailto:borud@yahoo-inc.com">Bj\u00F8rn Borud</a>
*/
import java.nio.channels.SocketChannel;
/**
* A factory interface used for associating SocketChannel and Listener
* information with the application's Connection object.
*
* @author <a href="mailto:borud@yahoo-inc.com">Bjorn Borud</a>
* @author <a href="mailto:travisb@yahoo-inc.com">Bob Travis</a>
*/
public interface ConnectionFactory {
public Connection newConnection(SocketChannel channel, Listener listener);
}
|