net.tomp2p.connection
Class PeerConnection

java.lang.Object
  extended by net.tomp2p.connection.PeerConnection

public class PeerConnection
extends Object


Constructor Summary
PeerConnection(PeerAddress destination, ChannelCreator channelCreator, int idleTCPMillis)
           
 
Method Summary
 void aquireSingleConnection()
           
 void close()
           
 ChannelCreator getChannelCreator()
           
 PeerAddress getDestination()
           
 int getIdleTCPMillis()
           
 boolean isClosed()
           
 void releaseSingleConnection()
           
 void setCloseRunner(Runnable closeRunner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerConnection

public PeerConnection(PeerAddress destination,
                      ChannelCreator channelCreator,
                      int idleTCPMillis)
Method Detail

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.