org.mpisws.p2p.transport.util
Class SocketRequestHandleImpl<Identifier>
java.lang.Object
org.mpisws.p2p.transport.util.SocketRequestHandleImpl<Identifier>
- All Implemented Interfaces:
- SocketRequestHandle<Identifier>, Cancellable
public class SocketRequestHandleImpl<Identifier>
- extends java.lang.Object
- implements SocketRequestHandle<Identifier>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SocketRequestHandleImpl
public SocketRequestHandleImpl(Identifier i,
java.util.Map<java.lang.String,java.lang.Object> options,
Logger logger)
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
Copyright © 2001-2005 - Rice Pastry.