public class ServerConnection
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
ServerConnection(java.lang.String peerName,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SyncCompleted |
receiveSyncCompeted(java.time.Duration timeout) |
SyncStarted |
receiveSyncStarted(java.time.Duration timeout) |
void |
send(ConnectionParameters connectionParameters) |
void |
send(SyncParameters syncParameters) |
public ServerConnection(java.lang.String peerName,
Connection connection)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void send(SyncParameters syncParameters)
public void send(ConnectionParameters connectionParameters)
public SyncStarted receiveSyncStarted(java.time.Duration timeout)
public SyncCompleted receiveSyncCompeted(java.time.Duration timeout)