Uses of Interface
net.morimekta.providence.PMessage
-
-
Uses of PMessage in net.morimekta.providence
Classes in net.morimekta.providence with type parameters of type PMessage Modifier and Type Interface Description interface
PMessage<Message extends PMessage<Message>>
Base class for all messages.class
PMessageBuilder<Message extends PMessage<Message>>
Base class for message builders.interface
PMessageOrBuilder<Message extends PMessage<Message>>
Base class for all messages and message builders.class
PServiceCall<Message extends PMessage<Message>>
Enclosed call to a service method.Subinterfaces of PMessage in net.morimekta.providence Modifier and Type Interface Description interface
PUnion<Union extends PUnion<Union>>
Base class for all unions.Classes in net.morimekta.providence that implement PMessage Modifier and Type Class Description class
PApplicationException
Base exception thrown on non-declared exceptions on a service call, and other server-side service call issues.Methods in net.morimekta.providence with type parameters of type PMessage Modifier and Type Method Description default <Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>PProcessor. handleCall(PServiceCall<Request> call)
Handle a service call.default <Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>PProcessor. handleCall(PServiceCall<Request> call)
Handle a service call.<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>PServiceCallHandler. handleCall(PServiceCall<Request> call, PService service)
Handle a service call.<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>PServiceCallHandler. handleCall(PServiceCall<Request> call, PService service)
Handle a service call. -
Uses of PMessage in net.morimekta.providence.client
Methods in net.morimekta.providence.client with type parameters of type PMessage Modifier and Type Method Description <Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>HttpClientHandler. handleCall(PServiceCall<Request> call, PService service)
<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>HttpClientHandler. handleCall(PServiceCall<Request> call, PService service)
-
Uses of PMessage in net.morimekta.providence.config
Classes in net.morimekta.providence.config with type parameters of type PMessage Modifier and Type Interface Description interface
ConfigListener<M extends PMessage<M>>
Interface for handling reactions to update of a config message.interface
ConfigSupplier<M extends PMessage<M>>
A supplier and instance holder for config objects.Methods in net.morimekta.providence.config with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>>
MConfigLoader. getConfig(java.nio.file.Path configFile)
Get config for the given file.<M extends PMessage<M>>
MConfigLoader. getConfig(java.nio.file.Path configFile, M parent)
Get config for the given with parent.<M extends PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadFile(java.nio.file.Path configFile)
Load a config file without parent config like on config file includes.<M extends PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadFile(java.nio.file.Path configFile, ConfigSupplier<M> parentConfig)
Load a config file overlaying another config.<M extends PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadResource(java.lang.String resourcePath)
Load a config resource without parent config like on config file includes.<RM extends PMessage<RM>>
ConfigSupplier<RM>ConfigSupplier. reference(PField... fields)
Give a reference to a sub-config based on field selection. -
Uses of PMessage in net.morimekta.providence.config.impl
Classes in net.morimekta.providence.config.impl with type parameters of type PMessage Modifier and Type Class Description class
FixedConfigSupplier<M extends PMessage<M>>
A supplier and instance holder for an immutable config instance.class
OverrideConfigSupplier<Message extends PMessage<Message>>
A supplier of a providence message config based on a parent config (supplier) and a map of value overrides.class
ProvidenceConfigSupplier<Message extends PMessage<Message>>
A supplier to get a config (aka message) from a providence config.class
ReferenceConfigSupplier<RefMessage extends PMessage<RefMessage>,ParentMessage extends PMessage<ParentMessage>>
A supplier to get a config (aka message) from a resource location.class
ReferenceConfigSupplier<RefMessage extends PMessage<RefMessage>,ParentMessage extends PMessage<ParentMessage>>
A supplier to get a config (aka message) from a resource location.class
ResourceConfigSupplier<Message extends PMessage<Message>>
A supplier to get a config (aka message) from a providence config.class
UpdatingConfigSupplier<M extends PMessage<M>>
A supplier and instance holder for config objects.Methods in net.morimekta.providence.config.impl with type parameters of type PMessage Modifier and Type Method Description <RM extends PMessage<RM>>
ConfigSupplier<RM>FixedConfigSupplier. reference(PField... fields)
<RM extends PMessage<RM>>
ConfigSupplier<RM>UpdatingConfigSupplier. reference(PField... fields)
-
Uses of PMessage in net.morimekta.providence.config.parser
Methods in net.morimekta.providence.config.parser with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>>
net.morimekta.util.Pair<M,java.util.Set<java.lang.String>>ConfigParser. parseConfig(java.nio.file.Path configFile, M parent)
Parse a providence config into a message. -
Uses of PMessage in net.morimekta.providence.config.testing
Classes in net.morimekta.providence.config.testing with type parameters of type PMessage Modifier and Type Class Description class
TestConfigSupplier<M extends PMessage<M>>
Config supplier meant for testing only. -
Uses of PMessage in net.morimekta.providence.descriptor
Classes in net.morimekta.providence.descriptor with type parameters of type PMessage Modifier and Type Class Description class
PExceptionDescriptor<Exception extends PMessage<Exception>>
The definition of a thrift exception.class
PExceptionDescriptorProvider<Exception extends PMessage<Exception>>
Provider for exception descriptor.interface
PField<M extends PMessage<M>>
Field descriptor.class
PInterfaceDescriptor<T extends PMessage<T>>
The definition of a providence interface.class
PInterfaceDescriptorProvider<V extends PMessage<V>>
Provider of struct descriptors.class
PMessageDescriptor<T extends PMessage<T>>
Descriptor base class for all messages.class
PMessageDescriptorProvider<V extends PMessage<V>>
Provides message descriptors.class
PStructDescriptor<T extends PMessage<T>>
The definition of a thrift structure.class
PStructDescriptorProvider<V extends PMessage<V>>
Provider of struct descriptors.class
PUnionDescriptor<T extends PMessage<T>>
The definition of a thrift union.class
PUnionDescriptorProvider<V extends PMessage<V>>
Provider of union descriptor. -
Uses of PMessage in net.morimekta.providence.graphql
Classes in net.morimekta.providence.graphql with type parameters of type PMessage Modifier and Type Interface Description interface
GQLFieldProvider<Message extends PMessage<Message>>
Interface for functionality that provide field values based on a source message and a GQL field. -
Uses of PMessage in net.morimekta.providence.graphql.gql
Methods in net.morimekta.providence.graphql.gql with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>>
MGQLField. getArguments()
<M extends PMessage<M>>
MGQLMethodCall. getArguments()
Methods in net.morimekta.providence.graphql.gql that return PMessage Modifier and Type Method Description PMessage
GQLIntrospection. getArguments()
Constructors in net.morimekta.providence.graphql.gql with parameters of type PMessage Constructor Description GQLField(PField field, java.lang.String alias, PMessage<?> arguments, java.util.List<GQLSelection> selectionSet)
Make a full field selection definition.GQLIntrospection(GQLIntrospection.Field field, java.lang.String alias, PMessage arguments, java.util.List<GQLSelection> selectionSet)
GQLMethodCall(PServiceMethod method, java.lang.String alias, PMessage<?> arguments, java.util.List<GQLSelection> selectionSet)
Make a full field selection definition. -
Uses of PMessage in net.morimekta.providence.jax.rs
Methods in net.morimekta.providence.jax.rs that return PMessage Modifier and Type Method Description PMessage
ProvidenceMessageBodyReader. readFrom(java.lang.Class<PMessage> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
Method parameters in net.morimekta.providence.jax.rs with type arguments of type PMessage Modifier and Type Method Description PMessage
ProvidenceMessageBodyReader. readFrom(java.lang.Class<PMessage> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
-
Uses of PMessage in net.morimekta.providence.jdbi.v2
Classes in net.morimekta.providence.jdbi.v2 with type parameters of type PMessage Modifier and Type Class Description class
MessageFieldArgument<M extends PMessage<M>>
Smart mapping of message fields to SQL bound argument.class
MessageNamedArgumentFinder<M extends PMessage<M>>
ANamedArgumentFinder
implementation that uses a message and finds values based on the thrift declared field names.class
MessageRowMapper<M extends PMessage<M>>
Map a result set to a message based on meta information and the message descriptor.class
MessageUpserter<M extends PMessage<M>>
Helper class to handle inserting content from messages into a table.static class
MessageUpserter.Builder<M extends PMessage<M>>
static class
ProvidenceJdbi.MappedField<M extends PMessage<M>>
Methods in net.morimekta.providence.jdbi.v2 with type parameters of type PMessage Modifier and Type Method Description static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. columnsFromAllFields()
With all column with default types.static <M extends PMessage<M>>
MessageNamedArgumentFinder<M>ProvidenceJdbi. forMessage(java.lang.String prefix, PMessageOrBuilder<M> message, FieldType<M>... fieldTypes)
Get named argument finder for message.static <M extends PMessage<M>>
MessageNamedArgumentFinder<M>ProvidenceJdbi. forMessage(M message, FieldType<M>... fieldTypes)
Get named argument finder for message.static <M extends PMessage<M>>
MessageFieldArgument<M>ProvidenceJdbi. toField(PMessageOrBuilder<M> message, PField<M> field)
Bind to the given field for the message.static <M extends PMessage<M>>
MessageFieldArgument<M>ProvidenceJdbi. toField(PMessageOrBuilder<M> message, PField<M> field, int type)
Bind to the given field for the message.static <M extends PMessage<M>>
MessageRowMapper<M>ProvidenceJdbi. toMessage(java.lang.String tableName, PMessageDescriptor<M> descriptor, ProvidenceJdbi.MappedField<M>... fieldMapping)
Bind to message using row mapper.static <M extends PMessage<M>>
MessageRowMapper<M>ProvidenceJdbi. toMessage(PMessageDescriptor<M> descriptor, ProvidenceJdbi.MappedField<M>... fieldMapping)
Bind to message using row mapper.static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. withColumn(java.lang.String name, PField<M> field)
With column mapped to field.static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. withColumn(PField<M> field)
With column mapped to field using the field name.static <M extends PMessage<M>>
FieldType<M>ProvidenceJdbi. withType(PField<M> field, int type)
With field mapped to SQL type. -
Uses of PMessage in net.morimekta.providence.jdbi.v2.annotations
Methods in net.morimekta.providence.jdbi.v2.annotations that return types with arguments of type PMessage Modifier and Type Method Description java.lang.Class<? extends PMessage<?>>
value()
-
Uses of PMessage in net.morimekta.providence.jdbi.v2.util
Classes in net.morimekta.providence.jdbi.v2.util with type parameters of type PMessage Modifier and Type Class Description class
FieldType<M extends PMessage<M>>
-
Uses of PMessage in net.morimekta.providence.jdbi.v3
Classes in net.morimekta.providence.jdbi.v3 with type parameters of type PMessage Modifier and Type Class Description class
MessageFieldArgument<M extends PMessage<M>>
Smart mapping of message fields to SQL bound argument.class
MessageNamedArgumentFinder<M extends PMessage<M>>
ANamedArgumentFinder
implementation that uses a message and finds values based on the thrift declared field names.class
MessageRowMapper<M extends PMessage<M>>
Map a result set to a message based on meta information and the message descriptor.class
MessageUpserter<M extends PMessage<M>>
Helper class to handle inserting content from messages into a table.static class
MessageUpserter.Builder<M extends PMessage<M>>
static class
ProvidenceJdbi.MappedField<M extends PMessage<M>>
Methods in net.morimekta.providence.jdbi.v3 with type parameters of type PMessage Modifier and Type Method Description static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. columnsFromAllFields()
With all column with default types.static <M extends PMessage<M>>
MessageNamedArgumentFinder<M>ProvidenceJdbi. forMessage(java.lang.String prefix, PMessageOrBuilder<M> message, FieldType<M>... fieldTypes)
Get named argument finder for message.static <M extends PMessage<M>>
MessageNamedArgumentFinder<M>ProvidenceJdbi. forMessage(PMessageOrBuilder<M> message, FieldType<M>... fieldTypes)
Get named argument finder for message.static <M extends PMessage<M>>
MessageFieldArgument<M>ProvidenceJdbi. toField(PMessageOrBuilder<M> message, PField<M> field)
Bind to the given field for the message.static <M extends PMessage<M>>
MessageFieldArgument<M>ProvidenceJdbi. toField(PMessageOrBuilder<M> message, PField<M> field, int type)
Bind to the given field for the message.static <M extends PMessage<M>>
MessageRowMapper<M>ProvidenceJdbi. toMessage(java.lang.String tableName, PMessageDescriptor<M> descriptor, ProvidenceJdbi.MappedField<M>... fieldMapping)
Bind to message using row mapper.static <M extends PMessage<M>>
MessageRowMapper<M>ProvidenceJdbi. toMessage(PMessageDescriptor<M> descriptor, ProvidenceJdbi.MappedField<M>... fieldMapping)
Bind to message using row mapper.static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. withColumn(java.lang.String name, PField<M> field)
With column mapped to field.static <M extends PMessage<M>>
ProvidenceJdbi.MappedField<M>ProvidenceJdbi. withColumn(PField<M> field)
With column mapped to field using the field name.static <M extends PMessage<M>>
FieldType<M>ProvidenceJdbi. withType(PField<M> field, int type)
With field mapped to SQL type. -
Uses of PMessage in net.morimekta.providence.jdbi.v3.annotations
Methods in net.morimekta.providence.jdbi.v3.annotations that return types with arguments of type PMessage Modifier and Type Method Description java.lang.Class<? extends PMessage<?>>
value()
-
Uses of PMessage in net.morimekta.providence.jdbi.v3.util
Classes in net.morimekta.providence.jdbi.v3.util with type parameters of type PMessage Modifier and Type Class Description class
FieldType<M extends PMessage<M>>
-
Uses of PMessage in net.morimekta.providence.logging
Methods in net.morimekta.providence.logging with type parameters of type PMessage Modifier and Type Method Description <Message extends PMessage<Message>>
java.lang.StringLogFormatter. format(PMessageOrBuilder<Message> message)
Format message to a string.<Message extends PMessage<Message>>
voidLogFormatter. formatTo(java.io.OutputStream out, PMessageOrBuilder<Message> message)
Format message and write to the output stream.<Message extends PMessage<Message>>
MessageFileMessageReader. read(PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>FileMessageReader. read(PService service)
<Message extends PMessage<Message>>
MessageIOMessageReader. read(PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>IOMessageReader. read(PService service)
<Message extends PMessage<Message>>
MessageMessageReader. read(PMessageDescriptor<Message> descriptor)
Read a message from the stream.<Message extends PMessage<Message>>
PServiceCall<Message>MessageReader. read(PService service)
Read a service call from the stream.<Message extends PMessage<Message>>
intFileMessageWriter. write(PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intFileMessageWriter. write(PServiceCall<Message> call)
<Message extends PMessage<Message>>
intIOMessageWriter. write(PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intIOMessageWriter. write(PServiceCall<Message> call)
<Message extends PMessage<Message>>
intMessageWriter. write(PMessageOrBuilder<Message> message)
Write a providence message to the writer.<Message extends PMessage<Message>>
intMessageWriter. write(PServiceCall<Message> call)
Write a providence service call to the writer.<Message extends PMessage<Message>>
intQueuedMessageWriter. write(PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intQueuedMessageWriter. write(PServiceCall<Message> call)
<Message extends PMessage<Message>>
intRollingFileMessageWriter. write(PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intRollingFileMessageWriter. write(PServiceCall<Message> call)
-
Uses of PMessage in net.morimekta.providence.model
Classes in net.morimekta.providence.model that implement PMessage Modifier and Type Class Description class
ConstType
const <type> <name> = <value>class
Declaration
( <enum> | <typedef> | <struct> | <service> | <const> )class
EnumType
enum { (<value> ([;,])?)class
EnumValue
<name> (= <value>)class
FieldType
For fields: (<key>:)?class
FunctionType
(oneway)?class
MessageType
<variant> { (<field> ([,;])?)class
ProgramMeta
A meta object describing a parsed program file.class
ProgramType
<namespace>* <include>* <declataion>*class
ServiceType
service (extends <extend>)?class
TypedefType
typedef <type> <name> -
Uses of PMessage in net.morimekta.providence.reflect.contained
Classes in net.morimekta.providence.reflect.contained with type parameters of type PMessage Modifier and Type Class Description class
CField<M extends PMessage<M>>
Description of a single contained field.interface
CMessage<Message extends PMessage<Message>>
class
CMessageBuilder<Builder extends CMessageBuilder<Builder,Message>,Message extends PMessage<Message>>
Base message builder class for contained messages.Subinterfaces of PMessage in net.morimekta.providence.reflect.contained Modifier and Type Interface Description interface
CMessage<Message extends PMessage<Message>>
Classes in net.morimekta.providence.reflect.contained that implement PMessage Modifier and Type Class Description class
CException
class
CInterface
A contained message of variant interface.class
CStruct
A contained message of variant struct.class
CUnion
Methods in net.morimekta.providence.reflect.contained with type parameters of type PMessage Modifier and Type Method Description protected static <Message extends PMessage<Message>>
java.lang.StringCStruct. asString(Message message)
Prints a jsonCompact string representation of the message.protected static <M extends PMessage<M>>
booleanCStruct. equals(M a, M b)
-
Uses of PMessage in net.morimekta.providence.serializer
Methods in net.morimekta.providence.serializer with type parameters of type PMessage Modifier and Type Method Description <Message extends PMessage<Message>>
MessageBinarySerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>BinarySerializer. deserialize(java.io.InputStream is, PService service)
<Message extends PMessage<Message>>
MessageFastBinarySerializer. deserialize(java.io.InputStream is, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>FastBinarySerializer. deserialize(java.io.InputStream is, PService service)
<T extends PMessage<T>>
TJsonSerializer. deserialize(java.io.InputStream input, PMessageDescriptor<T> type)
<T extends PMessage<T>>
PServiceCall<T>JsonSerializer. deserialize(java.io.InputStream input, PService service)
<T extends PMessage<T>>
TJsonSerializer. deserialize(java.io.Reader input, PMessageDescriptor<T> type)
<Message extends PMessage<Message>>
MessagePrettySerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>PrettySerializer. deserialize(java.io.InputStream input, PService service)
abstract <Message extends PMessage<Message>>
MessageSerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
Deserialize a message.abstract <Message extends PMessage<Message>>
PServiceCall<Message>Serializer. deserialize(java.io.InputStream input, PService service)
Deserialize a service call.<Message extends PMessage<Message>>
MessageUrlEncodedSerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>UrlEncodedSerializer. deserialize(java.io.InputStream input, PService service)
static <Message extends PMessage<Message>>
MessageBinarySerializer. parseBinary(net.morimekta.util.Binary binary, PMessageDescriptor<Message> descriptor)
static <Message extends PMessage<Message>>
MessagePrettySerializer. parseDebugString(java.lang.String string, PMessageDescriptor<Message> descriptor)
Parses a pretty formatted string, and makes exceptions unchecked.static <Message extends PMessage<Message>>
MessageJsonSerializer. parseJsonString(java.lang.String string, PMessageDescriptor<Message> descriptor)
Parses a JSON string, and makes exceptions unchecked.<Message extends PMessage<Message>>
intBinarySerializer. serialize(java.io.OutputStream os, PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intBinarySerializer. serialize(java.io.OutputStream os, PServiceCall<Message> call)
<Message extends PMessage<Message>>
intFastBinarySerializer. serialize(java.io.OutputStream os, PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intFastBinarySerializer. serialize(java.io.OutputStream os, PServiceCall<Message> call)
<T extends PMessage<T>>
intJsonSerializer. serialize(java.io.OutputStream output, PMessageOrBuilder<T> message)
<T extends PMessage<T>>
intJsonSerializer. serialize(java.io.OutputStream output, PServiceCall<T> call)
<T extends PMessage<T>>
voidJsonSerializer. serialize(java.io.PrintWriter output, PMessageOrBuilder<T> message)
<Message extends PMessage<Message>>
intPrettySerializer. serialize(java.io.OutputStream out, PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intPrettySerializer. serialize(java.io.OutputStream out, PServiceCall<Message> call)
abstract <Message extends PMessage<Message>>
intSerializer. serialize(java.io.OutputStream output, PMessageOrBuilder<Message> message)
Serialize a message.abstract <Message extends PMessage<Message>>
intSerializer. serialize(java.io.OutputStream output, PServiceCall<Message> call)
Serialize a service call.<Message extends PMessage<Message>>
intUrlEncodedSerializer. serialize(java.io.OutputStream output, PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intUrlEncodedSerializer. serialize(java.io.OutputStream output, PServiceCall<Message> call)
<Message extends PMessage<Message>>
java.lang.StringUrlEncodedSerializer. serialize(PMessageOrBuilder<Message> message)
static <Message extends PMessage<Message>>
net.morimekta.util.BinaryBinarySerializer. toBinary(Message message)
static <Message extends PMessage<Message>>
java.lang.StringPrettySerializer. toDebugString(PMessageOrBuilder<Message> message)
Prints a pretty formatted string that is optimized for diffing (mainly for testing and debugging).static <Message extends PMessage<Message>>
java.lang.StringJsonSerializer. toJsonString(PMessageOrBuilder<Message> message)
Prints a JSON string of the provided message.static <Message extends PMessage<Message>>
java.lang.StringJsonSerializer. toPrettyJsonString(PMessageOrBuilder<Message> message)
Prints a pretty formatted JSON string of the provided message. -
Uses of PMessage in net.morimekta.providence.serializer.binary
Methods in net.morimekta.providence.serializer.binary with type parameters of type PMessage Modifier and Type Method Description static <Message extends PMessage<Message>>
MessageBinaryFormatUtils. readMessage(net.morimekta.util.io.BigEndianBinaryReader input, PMessageDescriptor<Message> descriptor, boolean strict)
Read message from reader.static <Message extends PMessage<Message>>
intBinaryFormatUtils. writeMessage(net.morimekta.util.io.BigEndianBinaryWriter writer, PMessageOrBuilder<Message> message)
Write message to writer. -
Uses of PMessage in net.morimekta.providence.server
Classes in net.morimekta.providence.server with type parameters of type PMessage Modifier and Type Class Description class
ProvidenceHttpServlet<RequestType extends PMessage<RequestType>,ResponseType extends PMessage<ResponseType>>
A simple HTTP POST servlet that simply deserializes the POST body as a providence message, and serializes the response message using the requested content type or accept type.class
ProvidenceHttpServlet<RequestType extends PMessage<RequestType>,ResponseType extends PMessage<ResponseType>>
A simple HTTP POST servlet that simply deserializes the POST body as a providence message, and serializes the response message using the requested content type or accept type.Classes in net.morimekta.providence.server that implement PMessage Modifier and Type Class Description class
ProvidenceHttpError
-
Uses of PMessage in net.morimekta.providence.storage
Classes in net.morimekta.providence.storage with type parameters of type PMessage Modifier and Type Class Description class
DirectoryMessageListStore<K,M extends PMessage<M>>
Simple file-based storage of lists of providence messages that keeps an in-memory key index, a message cache, and stores message lists to individual files in a single directly.class
DirectoryMessageSetStore<K,M extends PMessage<M>>
Simple file-based set storage of providence messages that keeps an in-memory key index, a message cache, and stores messages to individual files in a single directly.class
DirectoryMessageStore<K,M extends PMessage<M>>
Simple file-based storage of providence messages that keeps an in-memory key index, a message cache, and stores messages to individual files in a single directly.class
InMemoryMessageListStore<K,M extends PMessage<M>>
Simple in-memory storage of lists providence messages.class
InMemoryMessageSetStore<K,M extends PMessage<M>>
Simple in-memory set storage of providence messages.class
InMemoryMessageStore<K,M extends PMessage<M>>
Simple in-memory storage of providence messages.interface
MessageListReadOnlyStore<K,M extends PMessage<M>>
Interface for storing messages of a single type.interface
MessageListStore<K,M extends PMessage<M>>
Interface for storing messages of a single type.interface
MessageReadOnlyStore<K,M extends PMessage<M>>
Interface for storing messages of a single type.interface
MessageSearcher<Q,M extends PMessage<M>>
Interface for searching a store for a specific search S.interface
MessageSetStore<K,M extends PMessage<M>>
Interface for storing messages of a single type as if it's a set of distinct messages.interface
MessageStore<K,M extends PMessage<M>>
Interface for storing messages of a single type.class
PredicateFilterMessageStoreSearcher<Q,K,M extends PMessage<M>>
Simple store searcher that finds all messages in a given store that matches a simple java predicate.static interface
PredicateFilterMessageStoreSearcher.PredicateFilter<Q,K,M extends PMessage<M>>
Methods in net.morimekta.providence.storage with type parameters of type PMessage Modifier and Type Method Description static <M extends PMessage<M>,V extends PMessageOrBuilder<M>,B extends PMessageBuilder<M>>
java.util.List<B>MessageStoreUtils. toBuilderAll(java.util.Collection<V> messages)
Deprecated.Mutate all items of the collection containing messages.static <M extends PMessage<M>,B extends PMessageBuilder<M>>
BMessageStoreUtils. toBuilderIfNonNull(PMessageOrBuilder<M> mob)
Deprecated.Mutate the message if it is not null.static <K,M extends PMessage<M>,V extends PMessageOrBuilder<M>,B extends PMessageBuilder<M>>
java.util.Map<K,B>MessageStoreUtils. toBuilderValues(java.util.Map<K,V> messages)
Deprecated.Mutate all items of the collection containing messages.static <M extends PMessage<M>,V extends PMessageOrBuilder<M>>
java.util.List<M>MessageStoreUtils. toMessageAll(java.util.Collection<V> builders)
Deprecated.Build all items of the collection containing builders.static <M extends PMessage<M>>
MMessageStoreUtils. toMessageIfNotNull(PMessageOrBuilder<M> mob)
Deprecated.Build the message from builder if it is not null.static <K,M extends PMessage<M>,V extends PMessageOrBuilder<M>>
java.util.Map<K,M>MessageStoreUtils. toMessageValues(java.util.Map<K,V> messages)
Deprecated.Mutate all items of the collection containing messages. -
Uses of PMessage in net.morimekta.providence.storage.hazelcast
Classes in net.morimekta.providence.storage.hazelcast with type parameters of type PMessage Modifier and Type Class Description class
HazelcastMessageBuilderStorage<Key,Message extends PMessage<Message>,Builder extends PMessageBuilder<Message> & com.hazelcast.nio.serialization.Portable>
A message store containing message builders.class
HazelcastMessageListStorage<K,M extends PMessage<M>>
Note that the hazelcast message store is backed by the PMessage serializable properties, which makes the message field not indexed.class
HazelcastMessageSearcher<Q,Key,M extends PMessage<M>,B extends PMessageBuilder<M>>
class
HazelcastMessageSetBuilderStorage<Key,Message extends PMessage<Message>,Builder extends PMessageBuilder<Message> & com.hazelcast.nio.serialization.Portable>
A message store containing message builders.class
HazelcastMessageSetStorage<Key,Message extends PMessage<Message>>
Note that the hazelcast message store is backed by the PMessage serializable property, which makes the message fields not indexable.class
HazelcastMessageStorage<Key,Message extends PMessage<Message>>
Note that the hazelcast message store is backed by the PMessage serializable property, which makes the message fields not indexable. -
Uses of PMessage in net.morimekta.providence.streams
Classes in net.morimekta.providence.streams with type parameters of type PMessage Modifier and Type Class Description class
MessageSpliterator<Message extends PMessage<Message>>
Spliterator that reads messages from a stream.Methods in net.morimekta.providence.streams with type parameters of type PMessage Modifier and Type Method Description static <Message extends PMessage<Message>>
java.util.stream.Stream<Message>MessageStreams. file(java.io.File file, Serializer serializer, PMessageDescriptor<Message> descriptor)
Read a file containing entries of a given type.static <Message extends PMessage<Message>>
java.util.stream.Stream<Message>MessageStreams. path(java.nio.file.Path file, Serializer serializer, PMessageDescriptor<Message> descriptor)
Read a file containing entries of a given type.static <Message extends PMessage<Message>>
java.util.stream.Stream<Message>MessageStreams. resource(java.lang.String resource, Serializer serializer, PMessageDescriptor<Message> descriptor)
Read a file containing entries of a given type.static <Message extends PMessage<Message>>
java.util.stream.Stream<Message>MessageStreams. stream(java.io.InputStream in, Serializer serializer, PMessageDescriptor<Message> descriptor)
Read a input stream containing entries of a given type.static <Message extends PMessage<Message>>
java.util.stream.Collector<Message,java.io.OutputStream,java.lang.Integer>MessageCollectors. toFile(java.io.File file, Serializer serializer)
write stream of messages to file.static <Message extends PMessage<Message>>
java.util.stream.Collector<Message,java.io.OutputStream,java.lang.Integer>MessageCollectors. toPath(java.nio.file.Path file, Serializer serializer)
Write stream of messages to file described by path.static <Message extends PMessage<Message>>
java.util.stream.Collector<Message,java.util.concurrent.atomic.AtomicInteger,java.lang.Integer>MessageCollectors. toStream(java.io.OutputStream out, Serializer serializer)
Serialize stream of messages into stream.static <Message extends PMessage<Message>>
java.util.stream.Collector<Message,java.util.concurrent.atomic.AtomicInteger,java.lang.Integer>MessageCollectors. toStream(java.io.OutputStream out, Serializer serializer, boolean close)
Serialize stream of messages into stream. -
Uses of PMessage in net.morimekta.providence.testing
Classes in net.morimekta.providence.testing with type parameters of type PMessage Modifier and Type Class Description class
EqualToMessage<Message extends PMessage<Message>>
Equality matcher for messages with pinpointed field diff output and possibility to ignore individual fields.Methods in net.morimekta.providence.testing with type parameters of type PMessage Modifier and Type Method Description static <Message extends PMessage<Message>>
EqualToMessage<Message>EqualToMessage. equalToMessage(PMessageOrBuilder<Message> expected)
-
Uses of PMessage in net.morimekta.providence.testing.generator
Classes in net.morimekta.providence.testing.generator with type parameters of type PMessage Modifier and Type Interface Description interface
MessageFieldGenerator<M extends PMessage<M>,MB extends PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Basic generator interface.static class
MessageFieldGenerator.Conditional<M extends PMessage<M>,MB extends PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Conditional field value generator.static class
MessageFieldGenerator.Wrapper<M extends PMessage<M>,MB extends PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Simple class that wraps a standard value generator.class
MessageGenerator<Context extends GeneratorContext<Context>,Message extends PMessage<Message>,MessageOrBuilder extends PMessageOrBuilder<Message>>
Message generator for generating a specific message.Methods in net.morimekta.providence.testing.generator with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>,VG extends Generator<Context,M>>
VGGeneratorContext. generatorFor(PMessageDescriptor<M> descriptor)
<M extends PMessage<M>>
MGeneratorContext. nextMessage(PMessageDescriptor<M> descriptor)
Create a message based on the current generator.<M extends PMessage<M>,MOB extends PMessageOrBuilder<M>>
MGeneratorContext. nextMessage(PMessageDescriptor<M> descriptor, java.util.function.Consumer<MessageGenerator<Context,M,MOB>> closure)
Create a message based on a modified generator.<M extends PMessage<M>,MOB extends PMessageOrBuilder<M>>
GeneratorContext<Context>GeneratorContext. withMessageGenerator(PMessageDescriptor<M> descriptor, java.util.function.Consumer<MessageGenerator<Context,M,MOB>> closure)
Update the generator for the given message type.Methods in net.morimekta.providence.testing.generator that return types with arguments of type PMessage Modifier and Type Method Description java.util.List<PMessage>
GeneratorContext. getGeneratedMessages()
-
Uses of PMessage in net.morimekta.providence.testing.junit4
Methods in net.morimekta.providence.testing.junit4 with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>>
MGeneratorWatcher. generate(PMessageDescriptor<M> descriptor)
Generate a message with random content using the default generator for the message type. -
Uses of PMessage in net.morimekta.providence.testing.util
Methods in net.morimekta.providence.testing.util with type parameters of type PMessage Modifier and Type Method Description static <T extends PMessage<T>>
voidMessageDiff. collectMismatches(java.lang.String xPath, PMessageOrBuilder<T> expected, PMessageOrBuilder<T> actual, java.util.Set<PField> ignoringFields, MessageDiff.MismatchHandler mismatches)
static <M extends PMessage<M>>
java.lang.StringMessageDiff. limitToString(PMessageOrBuilder<M> message)
-
Uses of PMessage in net.morimekta.providence.thrift
Methods in net.morimekta.providence.thrift with type parameters of type PMessage Modifier and Type Method Description <Message extends PMessage<Message>>
MessageTSimpleJsonProtocolSerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>TSimpleJsonProtocolSerializer. deserialize(java.io.InputStream input, PService service)
<Message extends PMessage<Message>>
MessageTTupleProtocolSerializer. deserialize(java.io.InputStream input, PMessageDescriptor<Message> descriptor)
<Message extends PMessage<Message>>
PServiceCall<Message>TTupleProtocolSerializer. deserialize(java.io.InputStream input, PService service)
<Message extends PMessage<Message>>
intTTupleProtocolSerializer. serialize(java.io.OutputStream output, PMessageOrBuilder<Message> message)
<Message extends PMessage<Message>>
intTTupleProtocolSerializer. serialize(java.io.OutputStream output, PServiceCall<Message> call)
-
Uses of PMessage in net.morimekta.providence.thrift.client
Methods in net.morimekta.providence.thrift.client with type parameters of type PMessage Modifier and Type Method Description <Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>NonblockingSocketClientHandler. handleCall(PServiceCall<Request> call, PService service)
<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>NonblockingSocketClientHandler. handleCall(PServiceCall<Request> call, PService service)
<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>SocketClientHandler. handleCall(PServiceCall<Request> call, PService service)
<Request extends PMessage<Request>,Response extends PMessage<Response>>
PServiceCall<Response>SocketClientHandler. handleCall(PServiceCall<Request> call, PService service)
-
Uses of PMessage in net.morimekta.providence.types
Methods in net.morimekta.providence.types with type parameters of type PMessage Modifier and Type Method Description <M extends PMessage<M>>
PMessageDescriptor<M>TypeRegistry. requireMessageType(TypeReference reference)
Get the declared message type. -
Uses of PMessage in net.morimekta.providence.util
Classes in net.morimekta.providence.util with type parameters of type PMessage Modifier and Type Class Description class
MessageValidator<M extends PMessage<M>,E extends java.lang.Exception>
Class that handles validation of the structure or content of a message type.static class
MessageValidator.Builder<M extends PMessage<M>,E extends java.lang.Exception>
Builder vlass for message validators.static interface
MessageValidator.Validation<M extends PMessage<M>,E extends java.lang.Exception>
Methods in net.morimekta.providence.util with type parameters of type PMessage Modifier and Type Method Description static <M extends PMessage<M>,E extends java.lang.Exception>
MessageValidator.Builder<M,E>MessageValidator. builder(PMessageDescriptor<M> descriptor, java.util.function.Function<java.lang.String,E> onMismatch)
Create a message validator that throws specific exception on failure.<M2 extends PMessage<M2>>
MessageValidator.Builder<M,E>MessageValidator.Builder. expect(PField<M> field, PMessageDescriptor<M2> descriptor, java.util.function.Consumer<MessageValidator.Builder<M2,E>> builderConsumer)
Given the field and type descriptor (which must match the field type), build an inner validator to check the value of the field.static <M extends PMessage<M>,B extends PMessageBuilder<M>>
BMessageUtil. getTargetModifications(PMessageOrBuilder<M> source, PMessageOrBuilder<M> target)
Make a builder of the target message with all differences between source and target marked as modifications.static <M extends PMessage<M>,V extends PMessageOrBuilder<M>,B extends PMessageBuilder<M>>
java.util.List<B>MessageUtil. toBuilderAll(java.util.Collection<V> messages)
Mutate all items of the collection containing messages.static <M extends PMessage<M>,B extends PMessageBuilder<M>>
BMessageUtil. toBuilderIfNonNull(PMessageOrBuilder<M> mob)
Mutate the message if it is not null.static <K,M extends PMessage<M>,V extends PMessageOrBuilder<M>,B extends PMessageBuilder<M>>
java.util.Map<K,B>MessageUtil. toBuilderValues(java.util.Map<K,V> messages)
Mutate all values of the map containing message-or-builder values.static <M extends PMessage<M>,V extends PMessageOrBuilder<M>>
java.util.List<M>MessageUtil. toMessageAll(java.util.Collection<V> builders)
Build all items of the collection containing message-or-builders.static <M extends PMessage<M>>
MMessageUtil. toMessageIfNotNull(PMessageOrBuilder<M> mob)
Build the message from builder if it is not null.static <M extends PMessage<M>,MB extends PMessageOrBuilder<M>>
java.util.Collection<PMessageOrBuilder<M>>MessageUtil. toMessageOrBuilders(java.util.Collection<MB> items)
Casting utility to make into a collection of message-or-builders.static <K,M extends PMessage<M>,MB extends PMessageOrBuilder<M>>
java.util.Map<K,PMessageOrBuilder<M>>MessageUtil. toMessageOrBuilderValues(java.util.Map<K,MB> items)
Casting utility to make into a map of message-or-builders.static <K,M extends PMessage<M>,V extends PMessageOrBuilder<M>>
java.util.Map<K,M>MessageUtil. toMessageValues(java.util.Map<K,V> messages)
Mutate all items of the collection containing messages.
-