public abstract static class AbstractWheelConsistentHash.Externalizer<T extends AbstractWheelConsistentHash> extends AbstractExternalizer<T>
Constructor and Description |
---|
AbstractWheelConsistentHash.Externalizer() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
instance() |
T |
readObject(ObjectInput unmarshaller)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T abstractWheelConsistentHash)
Write the object reference to the stream.
|
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeClasses
public AbstractWheelConsistentHash.Externalizer()
protected abstract T instance()
public void writeObject(ObjectOutput output, T abstractWheelConsistentHash) throws IOException
Externalizer
output
- the object output to write toabstractWheelConsistentHash
- the object reference to writeIOException
- if an I/O error occurspublic T readObject(ObjectInput unmarshaller) throws IOException, ClassNotFoundException
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.unmarshaller
- the object input to read fromIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2012 JBoss by Red Hat. All Rights Reserved.