public static class ServerAddress.Externalizer extends AbstractExternalizer<ServerAddress>
Constructor and Description |
---|
ServerAddress.Externalizer() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends ServerAddress>> |
getTypeClasses()
Returns a collection of Class instances representing the types that this
AdvancedExternalizer can marshall.
|
ServerAddress |
readObject(ObjectInput in)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput out,
ServerAddress obj)
Write the object reference to the stream.
|
getId
public void writeObject(ObjectOutput out, ServerAddress obj)
Externalizer
out
- the object output to write toobj
- the object reference to writepublic ServerAddress readObject(ObjectInput in)
Externalizer
Externalizer.writeObject(ObjectOutput, Object)
method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.in
- the object input to read frompublic Set<Class<? extends ServerAddress>> getTypeClasses()
AdvancedExternalizer
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.