Uses of Class
org.johnnei.javatorrent.torrent.peer.PeerDirection
-
Packages that use PeerDirection Package Description org.johnnei.javatorrent.torrent.peer -
-
Uses of PeerDirection in org.johnnei.javatorrent.torrent.peer
Methods in org.johnnei.javatorrent.torrent.peer that return PeerDirection Modifier and Type Method Description static PeerDirectionPeerDirection. valueOf(String name)Returns the enum constant of this type with the specified name.static PeerDirection[]PeerDirection. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.johnnei.javatorrent.torrent.peer with parameters of type PeerDirection Modifier and Type Method Description booleanPeer. addBlockRequest(Piece piece, int byteOffset, int blockLength, PeerDirection type)Adds a download or upload job to the peer.voidPeer. cancelBlockRequest(Piece piece, int byteOffset, int blockLength, PeerDirection type)Removes the download or upload job from the peer.intPeer. getWorkQueueSize(PeerDirection direction)Gets the amount of pieces the client still needs to sendbooleanPeer. isChoked(PeerDirection direction)Checks if the client is choked.booleanPeer. isInterested(PeerDirection direction)Checks if the client is interested.voidPeer. setChoked(PeerDirection direction, boolean choked)Sets if this peer is choked or not.voidPeer. setInterested(PeerDirection direction, boolean interested)Sets if this peer is interested or not.
-