Interface Marshallable<T>

Type Parameters:
T - the type of this marshaller
All Superinterfaces:
Readable<T>, Writable<T>
All Known Subinterfaces:
ProtoStreamMarshaller<T>, ScalarMarshaller<T>
All Known Implementing Classes:
AbstractCollectionMarshaller, AbstractMapMarshaller, AbstractMemberMarshaller, BigDecimalMarshaller, BinaryFieldMarshaller, BinaryMemberMarshaller, BinaryMethodMarshaller, ByteBufferMarshalledKeyMarshaller, ByteBufferMarshalledValueMarshaller, CalendarMarshaller, ClassMarshaller, CollectionMarshaller, DecoratorMarshaller, EnumMapMarshaller, EnumMarshaller, EnumSetMarshaller, ExceptionMarshaller, FieldMarshaller, InetSocketAddressMarshaller, LinkedHashMapMarshaller, LoadedClassField, LocalDateTimeMarshaller, LocaleMarshaller, MapEntryMarshaller, MapMarshaller, MathContextMarshaller, MonthDayMarshaller, OffsetDateTimeMarshaller, OffsetTimeMarshaller, PackedArrayMarshaller, PeriodMarshaller, PropertiesMarshaller, PropertyMarshaller, ProxyMarshaller, Scalar, ScalarClass, ScalarFieldMarshaller, SortedMapMarshaller, SortedSetMarshaller, StackTraceElementMarshaller, StringKeyMapEntryMarshaller, StringKeyMapMarshaller, SynchronizedDecoratorMarshaller, TernaryFieldMarshaller, TernaryMemberMarshaller, TernaryMethodMarshaller, TypedArrayMarshaller, TypedEnumMarshaller, TypedObjectMarshaller, UnaryFieldMarshaller, UnaryMemberMarshaller, UnaryMethodMarshaller, 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:
      operation - 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.