Rev | Line | |
---|
[33] | 1 | package omq.common.util.Serializers; |
---|
| 2 | |
---|
| 3 | import omq.common.event.Event; |
---|
| 4 | import omq.common.message.Request; |
---|
| 5 | import omq.common.message.Response; |
---|
| 6 | import omq.exception.SerializerException; |
---|
| 7 | import omq.server.remote.request.RemoteObject; |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * |
---|
| 11 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
---|
| 12 | * |
---|
| 13 | */ |
---|
| 14 | public interface ISerializer { |
---|
| 15 | public byte[] serialize(Object obj) throws SerializerException; |
---|
| 16 | |
---|
| 17 | public Request deserializeRequest(byte[] bytes, RemoteObject obj) throws SerializerException; |
---|
| 18 | |
---|
| 19 | public Response deserializeResponse(byte[] bytes, Class<?> type) throws SerializerException; |
---|
| 20 | |
---|
| 21 | public Event deserializeEvent(byte[] bytes) throws SerializerException; |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.