public abstract class Protocol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Protocol.FileStreamsDeserializer210 |
static class |
Protocol.FileStreamsDeserializer310 |
static class |
Protocol.TransactionRepresentationDeserializer |
static class |
Protocol.TransactionSerializer |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FRAME_LENGTH |
static Serializer |
EMPTY_SERIALIZER |
static Deserializer<Integer> |
INTEGER_DESERIALIZER |
static ObjectSerializer<Integer> |
INTEGER_SERIALIZER |
static ObjectSerializer<Long> |
LONG_SERIALIZER |
static int |
MEGA |
static Deserializer<Void> |
VOID_DESERIALIZER |
static ObjectSerializer<Void> |
VOID_SERIALIZER |
| Constructor and Description |
|---|
Protocol(int chunkSize,
byte applicationProtocolVersion,
byte internalProtocolVersion) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLengthFieldPipes(org.jboss.netty.channel.ChannelPipeline pipeline,
int frameLength) |
static void |
assertChunkSizeIsWithinFrameSize(int chunkSize,
int frameLength) |
<PAYLOAD> Response<PAYLOAD> |
deserializeResponse(org.jboss.netty.handler.queue.BlockingReadHandler<org.jboss.netty.buffer.ChannelBuffer> reader,
ByteBuffer input,
long timeout,
Deserializer<PAYLOAD> payloadDeserializer,
ResourceReleaser channelReleaser,
org.neo4j.kernel.impl.transaction.log.entry.LogEntryReader<org.neo4j.kernel.impl.transaction.log.ReadableClosablePositionAwareChannel> entryReader) |
static boolean |
readBoolean(org.jboss.netty.buffer.ChannelBuffer buffer) |
static String |
readString(org.jboss.netty.buffer.ChannelBuffer buffer) |
static String |
readString(org.jboss.netty.buffer.ChannelBuffer buffer,
int length) |
void |
serializeRequest(org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
RequestType<?> type,
RequestContext ctx,
Serializer payload) |
static void |
writeChars(org.jboss.netty.buffer.ChannelBuffer buffer,
char[] chars) |
static void |
writeString(org.jboss.netty.buffer.ChannelBuffer buffer,
String name) |
public static final int MEGA
public static final int DEFAULT_FRAME_LENGTH
public static final ObjectSerializer<Integer> INTEGER_SERIALIZER
public static final ObjectSerializer<Long> LONG_SERIALIZER
public static final ObjectSerializer<Void> VOID_SERIALIZER
public static final Deserializer<Integer> INTEGER_DESERIALIZER
public static final Deserializer<Void> VOID_DESERIALIZER
public static final Serializer EMPTY_SERIALIZER
public Protocol(int chunkSize,
byte applicationProtocolVersion,
byte internalProtocolVersion)
public static void addLengthFieldPipes(org.jboss.netty.channel.ChannelPipeline pipeline,
int frameLength)
public static void writeString(org.jboss.netty.buffer.ChannelBuffer buffer,
String name)
public static void writeChars(org.jboss.netty.buffer.ChannelBuffer buffer,
char[] chars)
public static String readString(org.jboss.netty.buffer.ChannelBuffer buffer)
public static boolean readBoolean(org.jboss.netty.buffer.ChannelBuffer buffer)
public static String readString(org.jboss.netty.buffer.ChannelBuffer buffer, int length)
public static void assertChunkSizeIsWithinFrameSize(int chunkSize,
int frameLength)
public void serializeRequest(org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
RequestType<?> type,
RequestContext ctx,
Serializer payload)
throws IOException
IOExceptionpublic <PAYLOAD> Response<PAYLOAD> deserializeResponse(org.jboss.netty.handler.queue.BlockingReadHandler<org.jboss.netty.buffer.ChannelBuffer> reader, ByteBuffer input, long timeout, Deserializer<PAYLOAD> payloadDeserializer, ResourceReleaser channelReleaser, org.neo4j.kernel.impl.transaction.log.entry.LogEntryReader<org.neo4j.kernel.impl.transaction.log.ReadableClosablePositionAwareChannel> entryReader) throws IOException
IOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.