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 Object
implements SocketRequestHandle<Identifier>


Constructor Summary
SocketRequestHandleImpl(Identifier i, Map<String,Object> options, Logger logger)
           
 
Method Summary
 boolean cancel()
           
 Identifier getIdentifier()
          The identifier that the caller requested to open to.
 Map<String,Object> getOptions()
          The options that the caller used.
 Cancellable getSubCancellable()
           
 void setSubCancellable(Cancellable sub)
           
 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,
                               Map<String,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 Map<String,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 String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.