Package org.infinispan.stream.impl
Class IteratorResponses.IteratorResponsesExternalizer
- java.lang.Object
-
- org.infinispan.commons.marshall.AbstractExternalizer<IteratorResponses>
-
- org.infinispan.stream.impl.IteratorResponses.IteratorResponsesExternalizer
-
- All Implemented Interfaces:
Serializable
,org.infinispan.commons.marshall.AdvancedExternalizer<IteratorResponses>
,org.infinispan.commons.marshall.Externalizer<IteratorResponses>
- Enclosing class:
- IteratorResponses
public static class IteratorResponses.IteratorResponsesExternalizer extends org.infinispan.commons.marshall.AbstractExternalizer<IteratorResponses>
This externalizer is a special breed that converts a given response into others, based on whether or not an iterator has completed or not. This allows the originator to not have to create an intermediate collection to store the batched iterator and then the originator only has to create an object that requires given values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IteratorResponsesExternalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getId()
Set<Class<? extends IteratorResponses>>
getTypeClasses()
IteratorResponses
readObject(ObjectInput input)
void
writeObject(ObjectOutput output, IteratorResponses object)
-
-
-
Method Detail
-
getId
public Integer getId()
- Specified by:
getId
in interfaceorg.infinispan.commons.marshall.AdvancedExternalizer<IteratorResponses>
- Overrides:
getId
in classorg.infinispan.commons.marshall.AbstractExternalizer<IteratorResponses>
-
getTypeClasses
public Set<Class<? extends IteratorResponses>> getTypeClasses()
-
writeObject
public void writeObject(ObjectOutput output, IteratorResponses object) throws IOException
- Throws:
IOException
-
readObject
public IteratorResponses readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-