Rice Pastry API

org.mpisws.p2p.transport.util
Class SocketRequestHandleImpl<Identifier>

java.lang.Object
  extended by org.mpisws.p2p.transport.util.SocketRequestHandleImpl<Identifier>
All Implemented Interfaces:
SocketRequestHandle<Identifier>, Cancellable

public class SocketRequestHandleImpl<Identifier>
extends java.lang.Object
implements SocketRequestHandle<Identifier>


Constructor Summary
SocketRequestHandleImpl(Identifier i, java.util.Map<java.lang.String,java.lang.Object> options, Logger logger)
           
 
Method Summary
 boolean cancel()
           
 Identifier getIdentifier()
          The identifier that the caller requested to open to.
 java.util.Map<java.lang.String,java.lang.Object> getOptions()
          The options that the caller used.
 Cancellable getSubCancellable()
           
 void setSubCancellable(Cancellable sub)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketRequestHandleImpl

public SocketRequestHandleImpl(Identifier i,
                               java.util.Map<java.lang.String,java.lang.Object> options,
                               Logger logger)
Method Detail

getIdentifier

public Identifier getIdentifier()
Description copied from interface: SocketRequestHandle
The identifier that the caller requested to open to.

Specified by:
getIdentifier in interface SocketRequestHandle<Identifier>
Returns:

getOptions

public java.util.Map<java.lang.String,java.lang.Object> getOptions()
Description copied from interface: SocketRequestHandle
The options that the caller used.

Specified by:
getOptions in interface SocketRequestHandle<Identifier>
Returns:

cancel

public boolean cancel()
Specified by:
cancel in interface Cancellable
Returns:
true if it was cancelled, false if it was already complete, or cancelled.

setSubCancellable

public void setSubCancellable(Cancellable sub)

getSubCancellable

public Cancellable getSubCancellable()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection