Skip to content

[Java] add java serializer interface #75

@chaokunyang

Description

@chaokunyang

Is your feature request related to a problem? Please describe.
add java serializer interface, a new inter type support will only need to implement the serializer for that type.

Describe the solution you'd like

public abstract class Serializer<T> {
  public void write(MemoryBuffer buffer, T value) {
    throw new UnsupportedOperationException();
  }

  public T read(MemoryBuffer buffer) {
    throw new UnsupportedOperationException();
  }
  public void crossLanguageWrite(MemoryBuffer buffer, T value) {
    throw new UnsupportedOperationException();
  }

  public T crossLanguageRead(MemoryBuffer buffer) {
    throw new UnsupportedOperationException();
  }
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
#70

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions