org.jboss.jms.server.remoting
Class JMSWireFormat
java.lang.Object
org.jboss.jms.server.remoting.JMSWireFormat
- public class JMSWireFormat
- extends java.lang.Object
A JMSWireFormat.
For some invocations, e.g. message sends, acknowledgements and activations it is vital that we
minimise the amount of data sent in the invocation so that we can maximise performance.
By default, Invocations and return values are sent over the wire as serialized Java objects.
This adds considerable overhead in terms of the amount of data sent (it adds class information
plus block data information) which significantly degrades performance. Therefore for the
invocations where performance is paramount we define a customer wire format that minimises the
amount of data sent.
- Version:
- 1.1
JMSWireFormat.java,v 1.1 2006/02/01 17:38:32 timfox Exp
- Author:
- Tim Fox, Ovidiu Feodorov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZED
protected static final byte SERIALIZED
- See Also:
- Constant Field Values
ACKNOWLEDGE
protected static final byte ACKNOWLEDGE
- See Also:
- Constant Field Values
ACKNOWLEDGE_BATCH
protected static final byte ACKNOWLEDGE_BATCH
- See Also:
- Constant Field Values
SEND
protected static final byte SEND
- See Also:
- Constant Field Values
CANCEL_DELIVERIES
protected static final byte CANCEL_DELIVERIES
- See Also:
- Constant Field Values
MORE
protected static final byte MORE
- See Also:
- Constant Field Values
SEND_TRANSACTION
protected static final byte SEND_TRANSACTION
- See Also:
- Constant Field Values
GET_ID_BLOCK
protected static final byte GET_ID_BLOCK
- See Also:
- Constant Field Values
CALLBACK
protected static final byte CALLBACK
- See Also:
- Constant Field Values
NULL_RESPONSE
protected static final byte NULL_RESPONSE
- See Also:
- Constant Field Values
ID_BLOCK_RESPONSE
protected static final byte ID_BLOCK_RESPONSE
- See Also:
- Constant Field Values
HANDLE_MESSAGE_RESPONSE
protected static final byte HANDLE_MESSAGE_RESPONSE
- See Also:
- Constant Field Values
serializableMarshaller
protected Marshaller serializableMarshaller
serializableUnMarshaller
protected UnMarshaller serializableUnMarshaller
trace
protected boolean trace
JMSWireFormat
public JMSWireFormat()
write
public void write(java.lang.Object obj,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
cloneMarshaller
public Marshaller cloneMarshaller()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
read
public java.lang.Object read(java.io.InputStream in,
java.util.Map map)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
cloneUnMarshaller
public UnMarshaller cloneUnMarshaller()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
setClassLoader
public void setClassLoader(java.lang.ClassLoader classloader)
handleVersion
protected void handleVersion(java.lang.Object obj,
java.io.ObjectOutputStream oos)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2006 JBoss Inc. All Rights Reserved.