Class ScheduleCommandMarshaller<I,M>

java.lang.Object
org.wildfly.clustering.server.infinispan.scheduler.ScheduleCommandMarshaller<I,M>
Type Parameters:
I - the scheduled entry identifier type
M - the scheduled entry metadata type
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<ScheduleCommand<I,M>>, org.infinispan.protostream.ProtobufTagMarshaller<ScheduleCommand<I,M>>, Marshallable<ScheduleCommand<I,M>>, ProtoStreamMarshaller<ScheduleCommand<I,M>>, Readable<ScheduleCommand<I,M>>, Writable<ScheduleCommand<I,M>>

public class ScheduleCommandMarshaller<I,M> extends Object implements ProtoStreamMarshaller<ScheduleCommand<I,M>>
ProtoStream marshaller for a ScheduleCommand.
Author:
Paul Ferraro
  • Constructor Details

    • ScheduleCommandMarshaller

      public ScheduleCommandMarshaller()
  • Method Details

    • getJavaClass

      public Class<? extends ScheduleCommand<I,M>> getJavaClass()
      Description copied from interface: Marshallable
      Returns the type of object handled by this marshallable instance.
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<I>
      Specified by:
      getJavaClass in interface Marshallable<I>
      Returns:
      the type of object handled by this marshallable instance.
    • readFrom

      public ScheduleCommand<I,M> readFrom(ProtoStreamReader reader) throws IOException
      Description copied from interface: Readable
      Reads an object from the specified reader.
      Specified by:
      readFrom in interface Readable<I>
      Parameters:
      reader - a ProtoStream reader
      Returns:
      the read object
      Throws:
      IOException - if the object could not be read
    • writeTo

      public void writeTo(ProtoStreamWriter writer, ScheduleCommand<I,M> command) throws IOException
      Description copied from interface: Writable
      Writes the specified object to the specified writer.
      Specified by:
      writeTo in interface Writable<I>
      Parameters:
      writer - a ProtoStream writer
      command - the object to be written
      Throws:
      IOException - if the object could not be written