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 | |
---|
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.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.