Changed how serialization logging works
parent
09ef44391e
commit
010ee8f679
|
@ -114,7 +114,7 @@ class Project<T extends Project<T>> {
|
|||
public
|
||||
void write(final ByteBuf buffer, final Object message) {
|
||||
final Output output = new Output();
|
||||
writeFullClassAndObject(null, output, message);
|
||||
writeFullClassAndObject(output, message);
|
||||
buffer.writeBytes(output.getBuffer());
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ class Project<T extends Project<T>> {
|
|||
final Input input = new Input();
|
||||
buffer.readBytes(input.getBuffer());
|
||||
|
||||
final Object o = readFullClassAndObject(null, input);
|
||||
final Object o = readFullClassAndObject(input);
|
||||
buffer.skipBytes(input.position());
|
||||
|
||||
return o;
|
||||
|
@ -132,19 +132,19 @@ class Project<T extends Project<T>> {
|
|||
|
||||
@Override
|
||||
public
|
||||
void writeFullClassAndObject(final Logger logger, final Output output, final Object value) {
|
||||
void writeFullClassAndObject(final Output output, final Object value) {
|
||||
kryo.writeClassAndObject(output, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public
|
||||
Object readFullClassAndObject(final Logger logger, final Input input) throws IOException {
|
||||
Object readFullClassAndObject(final Input input) throws IOException {
|
||||
return kryo.readClassAndObject(input);
|
||||
}
|
||||
|
||||
@Override
|
||||
public
|
||||
void finishInit() {
|
||||
void finishInit(final Logger logger, final Logger writeLogger) {
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue