Rice Pastry API

org.mpisws.p2p.transport
Interface ErrorHandler<Identifier>

Type Parameters:
Identifier - the type of identifier at this layer
E - 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

Method Summary
 void receivedException(Identifier i, java.lang.Throwable error)
          We got an exception.
 void receivedUnexpectedData(Identifier i, byte[] bytes, int location, java.util.Map<java.lang.String,java.lang.Integer> options)
           
 

Method Detail

receivedUnexpectedData

void receivedUnexpectedData(Identifier i,
                            byte[] bytes,
                            int location,
                            java.util.Map<java.lang.String,java.lang.Integer> options)
Parameters:
i - the sender of the message (as can best be determined)
bytes - the entire message/socket header
location - 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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection