public class PeerConnection extends Object
| Constructor and Description |
|---|
PeerConnection(PeerAddress destination,
ChannelCreator channelCreator,
int idleTCPMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
aquireSingleConnection() |
void |
close() |
ChannelCreator |
getChannelCreator() |
PeerAddress |
getDestination() |
int |
getIdleTCPMillis() |
boolean |
isClosed() |
void |
releaseSingleConnection() |
void |
setCloseRunner(Runnable closeRunner) |
public PeerConnection(PeerAddress destination, ChannelCreator channelCreator, int idleTCPMillis)
public void close()
public PeerAddress getDestination()
public ChannelCreator getChannelCreator()
public boolean isClosed()
public int getIdleTCPMillis()
public void aquireSingleConnection()
throws InterruptedException
InterruptedExceptionpublic void releaseSingleConnection()
public void setCloseRunner(Runnable closeRunner)
Copyright © 2011. All Rights Reserved.