com.jeesuite.filesystem.sdk.fdfs.FastdfsHandler Maven / Gradle / Ivy
/**
*
*/
package com.jeesuite.filesystem.sdk.fdfs;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.timeout.IdleStateEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.UndeclaredThrowableException;
import java.util.List;
final class FastdfsHandler extends ByteToMessageDecoder {
private static final Logger LOG = LoggerFactory.getLogger(FastdfsHandler.class);
private volatile FastdfsOperation> operation;
void operation(FastdfsOperation> operation) {
this.operation = operation;
}
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List