Package | Description |
---|---|
org.infinispan.protostream |
Library for easy and efficient marshalling of Java objects in Protocol Buffers format.
|
org.infinispan.protostream.annotations |
Annotations for defining Protocol Buffers schemas in Java code.
|
org.infinispan.protostream.annotations.impl |
Holds the internal representation of Protobuf type metadata defined via annotations and the processors that handle
this metadata in order to generate protobuf schemas and marshallers.
|
org.infinispan.protostream.impl |
Protostream internals.
|
Modifier and Type | Method and Description |
---|---|
SerializationContext |
MessageMarshaller.ProtoStreamReader.getSerializationContext() |
SerializationContext |
MessageMarshaller.ProtoStreamWriter.getSerializationContext() |
static SerializationContext |
ProtobufUtil.newSerializationContext(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
static <A> A |
ProtobufUtil.fromByteArray(SerializationContext ctx,
byte[] bytes,
Class<A> clazz) |
static <A> A |
ProtobufUtil.fromByteArray(SerializationContext ctx,
byte[] bytes,
int offset,
int length,
Class<A> clazz) |
static <A> A |
ProtobufUtil.fromByteBuffer(SerializationContext ctx,
ByteBuffer byteBuffer,
Class<A> clazz) |
static Object |
ProtobufUtil.fromWrappedByteArray(SerializationContext ctx,
byte[] bytes)
Parses a top-level message that was wrapped according to the org.infinispan.protostream.WrappedMessage proto
definition.
|
static Object |
ProtobufUtil.fromWrappedByteArray(SerializationContext ctx,
byte[] bytes,
int offset,
int length) |
static Object |
ProtobufUtil.fromWrappedByteBuffer(SerializationContext ctx,
ByteBuffer byteBuffer) |
static <A> A |
ProtobufUtil.readFrom(SerializationContext ctx,
InputStream in,
Class<A> clazz) |
WrappedMessage |
WrappedMessage.Marshaller.readFrom(SerializationContext ctx,
RawProtoStreamReader in) |
T |
RawProtobufMarshaller.readFrom(SerializationContext ctx,
RawProtoStreamReader in) |
static Object |
WrappedMessage.readMessage(SerializationContext ctx,
RawProtoStreamReader in) |
static byte[] |
ProtobufUtil.toByteArray(SerializationContext ctx,
Object t) |
static ByteBuffer |
ProtobufUtil.toByteBuffer(SerializationContext ctx,
Object t) |
static byte[] |
ProtobufUtil.toWrappedByteArray(SerializationContext ctx,
Object t) |
static ByteBuffer |
ProtobufUtil.toWrappedByteBuffer(SerializationContext ctx,
Object t) |
static void |
WrappedMessage.writeMessage(SerializationContext ctx,
RawProtoStreamWriter out,
Object t) |
static void |
ProtobufUtil.writeTo(SerializationContext ctx,
OutputStream out,
Object t) |
void |
RawProtobufMarshaller.writeTo(SerializationContext ctx,
RawProtoStreamWriter out,
T t) |
void |
WrappedMessage.Marshaller.writeTo(SerializationContext ctx,
RawProtoStreamWriter out,
WrappedMessage wrappedMessage) |
Modifier and Type | Method and Description |
---|---|
String |
ProtoSchemaBuilder.build(SerializationContext serializationContext)
Builds the Protocol Buffers schema file and marshallers and registers them with the given
SerializationContext . |
Constructor and Description |
---|
ProtoSchemaGenerator(SerializationContext serializationContext,
String fileName,
String packageName,
Set<Class<?>> classes) |
Modifier and Type | Class and Description |
---|---|
class |
SerializationContextImpl |
Modifier and Type | Method and Description |
---|---|
T |
ProtocMessageMarshaller.readFrom(SerializationContext ctx,
RawProtoStreamReader in) |
void |
ProtocMessageMarshaller.writeTo(SerializationContext ctx,
RawProtoStreamWriter out,
T o) |
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.