Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.01 KB

spark-MessageHandler.adoc

File metadata and controls

49 lines (38 loc) · 1.01 KB

MessageHandler

MessageHandler is a contract of message handlers that can handle messages.

package org.apache.spark.network.server;

abstract class MessageHandler<T extends Message> {
  abstract void handle(T message) throws Exception;
  abstract void channelActive();
  abstract void exceptionCaught(Throwable cause);
  abstract void channelInactive();
}
Table 1. MessageHandler Contract
Method Description

handle

Used when…​FIXME

channelActive

Used when…​FIXME

exceptionCaught

Used when…​FIXME

channelInactive

Used when…​FIXME

Table 2. MessageHandlers
MessageHandler Description

TransportRequestHandler

TransportResponseHandler