package org.ehcache.clustered.common.internal.messages;
import org.ehcache.clustered.common.ServerSideConfiguration;
import org.ehcache.clustered.common.internal.ServerStoreConfiguration;
import org.terracotta.runnel.StructBuilder;
import org.terracotta.runnel.decoding.PrimitiveDecodingSupport;
import org.terracotta.runnel.decoding.StructDecoder;
import org.terracotta.runnel.encoding.PrimitiveEncodingSupport;
import org.terracotta.runnel.encoding.StructEncoder;
public interface ConfigCodec {
InjectTuple injectServerSideConfiguration(StructBuilder baseBuilder, int index);
void encodeServerSideConfiguration(StructEncoder<?> encoder, ServerSideConfiguration configuration);
ServerSideConfiguration decodeServerSideConfiguration(StructDecoder<?> decoder);
InjectTuple injectServerStoreConfiguration(StructBuilder baseBuilder, int index);
void encodeServerStoreConfiguration(PrimitiveEncodingSupport<?> encoder, ServerStoreConfiguration configuration);
ServerStoreConfiguration decodeServerStoreConfiguration(PrimitiveDecodingSupport decoder);
interface InjectTuple {
int getLastIndex();
StructBuilder getUpdatedBuilder();
}
}