eu.lucaventuri.fibry.distributed.ChannelSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fibry Show documentation
Show all versions of fibry Show documentation
The first Java Actor System supporting fibers from Project Loom
package eu.lucaventuri.fibry.distributed;
/**
* Serializer that can serialize both to String and byte[]. The implementation should be optimized, so that channels should avoid a costly double translation (e.g. from String to byte[] then to String again)
*/
public interface ChannelSerializer {
byte[] serialize(T object);
String serializeToString(T object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy