activemq-cpp-3.9.5
WireFormat.h
Go to the documentation of this file.
1
17
18#ifndef _ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_
19#define _ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_
20
22
26#include <decaf/lang/Pointer.h>
27
31
33
34namespace activemq {
35namespace wireformat {
36
37 using decaf::lang::Pointer;
38
44 public:
45
46 virtual ~WireFormat();
47
61 virtual void marshal(const Pointer<commands::Command> command,
64
81
88 virtual void setVersion(int version) = 0;
89
95 virtual int getVersion() const = 0;
96
102 virtual bool hasNegotiator() const = 0;
103
113 virtual bool inReceive() const = 0;
114
128
129 };
130
131}}
132
133#endif /*_ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_*/
#define AMQCPP_API
Definition Config.h:30
Interface for a transport layer for command objects.
Definition Transport.h:60
Provides a mechanism to marshal commands into and out of packets or into and out of streams,...
Definition WireFormat.h:43
virtual bool hasNegotiator() const =0
Returns true if this WireFormat has a Negotiator that needs to wrap the Transport that uses it.
virtual Pointer< commands::Command > unmarshal(const activemq::transport::Transport *transport, decaf::io::DataInputStream *in)=0
Stream based unmarshaling, blocks on reads on the input stream until a complete command has been read...
virtual Pointer< transport::Transport > createNegotiator(const Pointer< transport::Transport > transport)=0
If the Transport Provides a Negotiator this method will create and return a new instance of the Negot...
virtual void marshal(const Pointer< commands::Command > command, const activemq::transport::Transport *transport, decaf::io::DataOutputStream *out)=0
Stream based marshaling of a Command, this method blocks until the entire Command has been written ou...
virtual bool inReceive() const =0
Indicates if the WireFromat object is in the process of receiving a message.
virtual int getVersion() const =0
Get the Version.
virtual void setVersion(int version)=0
Set the Version.
A data input stream lets an application read primitive Java data types from an underlying input strea...
Definition DataInputStream.h:46
A data output stream lets an application write primitive Java data types to an output stream in a por...
Definition DataOutputStream.h:34
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Definition AbstractTransportFactory.h:30
Definition BaseDataStructure.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24