net.tomp2p.connection
Class PeerConnection
java.lang.Object
net.tomp2p.connection.PeerConnection
public class PeerConnection
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeerConnection
public PeerConnection(PeerAddress destination,
ChannelCreator channelCreator,
int idleTCPMillis)
close
public void close()
getDestination
public PeerAddress getDestination()
getChannelCreator
public ChannelCreator getChannelCreator()
isClosed
public boolean isClosed()
getIdleTCPMillis
public int getIdleTCPMillis()
aquireSingleConnection
public void aquireSingleConnection()
throws InterruptedException
- Throws:
InterruptedException
releaseSingleConnection
public void releaseSingleConnection()
setCloseRunner
public void setCloseRunner(Runnable closeRunner)
Copyright © 2011. All Rights Reserved.