source: trunk/src/main/java/omq/common/util/Serializers/ISerializer.java @ 60

Last change on this file since 60 was 44, checked in by stoda, 11 years ago

Objectmq converted to maven project

File size: 648 bytes
Line 
1package omq.common.util.Serializers;
2
3import omq.common.event.Event;
4import omq.common.message.Request;
5import omq.common.message.Response;
6import omq.exception.SerializerException;
7import omq.server.RemoteObject;
8
9/**
10 *
11 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
12 *
13 */
14public 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.