public static class FramedConnection.Builder extends Object
| Constructor and Description |
|---|
Builder(boolean client)
|
| Modifier and Type | Method and Description |
|---|---|
FramedConnection |
build()
|
FramedConnection |
listener(FramedConnection
|
FramedConnection |
protocol(Protocol
|
FramedConnection |
pushObserver(PushObserver
|
FramedConnection |
socket(Socket
|
FramedConnection |
socket(Socket
|
public Builder(boolean client)
throws IOException
client - true if this peer initiated the connection; false if this peer accepted the connection.
IOException
public FramedConnection.Builder socket(Socket socket) throws IOException
IOException
public FramedConnection.Builder socket(Socket socket, String hostname, okio .BufferedSource source, okio .BufferedSink sink)
public FramedConnection.Builder listener(FramedConnection .Listener listener)
public FramedConnection.Builder protocol(Protocol protocol)
public FramedConnection.Builder pushObserver(PushObserver pushObserver)
public FramedConnectionbuild() throws IOException
IOException