org.mpisws.p2p.transport
Interface ErrorHandler<Identifier>
- Type Parameters:
Identifier
- the type of identifier at this layerE
- the types of exceptions to expect
- All Known Implementing Classes:
- DefaultErrorHandler
public interface ErrorHandler<Identifier>
Notified when there is a problem not related to an outgoing message/socket,
or when a callback isn't provided for a message.
- Author:
- Jeff Hoye
receivedUnexpectedData
void receivedUnexpectedData(Identifier i,
byte[] bytes,
int location,
java.util.Map<java.lang.String,java.lang.Object> options)
- Parameters:
i
- the sender of the message (as can best be determined)bytes
- the entire message/socket headerlocation
- the location in the bytes that is unexpected
receivedException
void receivedException(Identifier i,
java.lang.Throwable error)
- We got an exception.
- Parameters:
i
- the identifier responsible (if any)error
- the exception
Copyright © 2001-2005 - Rice Pastry.