Interface Marshallable<T>

Type Parameters:
T - the type of this marshaller
All Superinterfaces:
Readable<T>, Writable<T>
All Known Subinterfaces:
FieldMarshaller<T>, ProtoStreamMarshaller<T>, ProtoStreamMarshallerProvider, ScalarMarshaller<T>, ScalarMarshallerProvider
All Known Implementing Classes:
AbstractCollectionMarshaller, AbstractMapMarshaller, AbstractMemberMarshaller, AnyMarshaller, AtomicMarshallerProvider, BigDecimalMarshaller, BinaryFieldMarshaller, BinaryMemberMarshaller, BinaryMethodMarshaller, ByteBufferMarshalledKeyMarshaller, ByteBufferMarshalledValueMarshaller, CalendarMarshaller, ClassMarshaller, CollectionMarshaller, ConcurrentMapMarshaller, ConcurrentMarshallerProvider, ConcurrentSortedMapMarshaller, CopyOnWriteCollectionMarshaller, DecoratorMarshaller, EnumMapMarshaller, EnumMarshaller, EnumMarshallerAdapter, ExceptionMarshaller, FieldMarshaller, FieldSetProtoStreamMarshaller, FunctionalMarshaller, FunctionalScalarMarshaller, InetSocketAddressMarshaller, InstantMarshaller, LinkedHashMapMarshaller, LoadedClassField, LocalDateTimeMarshaller, MapEntryMarshaller, MapMarshaller, MarshallingMarshallerProvider, MathContextMarshaller, MathMarshallerProvider, MonthDayMarshaller, NetMarshallerProvider, OffsetDateTimeMarshaller, OffsetTimeMarshaller, OptionalMarshaller, PackedArrayMarshaller, PeriodMarshaller, ProtoStreamMarshallerAdapter, ProxyMarshaller, Scalar, ScalarClass, ScalarFieldMarshaller, SimpleFunctionalMarshaller, SingletonCollectionMarshaller, SingletonMapMarshaller, SortedMapMarshaller, SortedSetMarshaller, SQLMarshallerProvider, StackTraceElementMarshaller, SynchronizedDecoratorMarshaller, TernaryFieldMarshaller, TernaryMemberMarshaller, TernaryMethodMarshaller, TimeMarshallerProvider, TypedArrayMarshaller, TypedEnumMarshaller, TypedObjectMarshaller, UnaryFieldMarshaller, UnaryMemberMarshaller, UnaryMethodMarshaller, UnmodifiableCollectionMarshaller, UnmodifiableMapMarshaller, URIMarshaller, URLMarshaller, UtilMarshallerProvider, ValueMarshaller, YearMonthMarshaller, ZonedDateTimeMarshaller

public interface Marshallable<T> extends Readable<T>, Writable<T>
Interface inherited by marshallable components.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends T>
    Returns the type of object handled by this marshallable instance.
    default OptionalInt
    size(ProtoStreamSizeOperation operation, T value)
    Computes the size of the specified object.

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Readable

    readFrom

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Writable

    writeTo
  • Method Details

    • size

      default OptionalInt size(ProtoStreamSizeOperation operation, T value)
      Computes the size of the specified object.
      Parameters:
      context - the marshalling operation
      value - the value whose size is to be calculated
      Returns:
      an optional buffer size, only present if the buffer size could be computed
    • getJavaClass

      Class<? extends T> getJavaClass()
      Returns the type of object handled by this marshallable instance.
      Returns:
      the type of object handled by this marshallable instance.