package com.mongodb.internal.connection;
import com.mongodb.session.SessionContext;
import org.bson.io.BsonOutput;
abstract class LegacyMessage extends RequestMessage {
LegacyMessage(final String collectionName, final OpCode opCode, final MessageSettings settings) {
super(collectionName, opCode, settings);
}
LegacyMessage(final OpCode opCode, final MessageSettings settings) {
super(opCode, settings);
}
abstract EncodingMetadata encodeMessageBodyWithMetadata(BsonOutput bsonOutput);
protected EncodingMetadata encodeMessageBodyWithMetadata(final BsonOutput bsonOutput, final SessionContext sessionContext) {
return encodeMessageBodyWithMetadata(bsonOutput);
}
}