- com
- softwareag
- umtransport
- ServerSHMTransportContext
Constructed using the ServerSHMTransportContext.Builder. All information must be set on the Builder so that when this object is built, it is validated. It is used to create Transport objects using TransportFactory.connect. Communication on the transport is transmitted using Shared Memory. More...
#include <ServerSHMTransportContext.h>
Data Structures | |
class | Builder |
This Builder object is used to build a ServerSHMTransportContext. The ServerSHMTransportContext is configured using the builder so that once build() is called, the ServerSHMTransportContext is only returned if it is valid. You can use the Builder to create simple readable code like this: More... | |
Public Member Functions | |
int | getBufferSize () |
Get the buffer size in bytes that will be used by ServerTransports created using this ServerTransportContext More... | |
std::string | getFilePath () |
Get the path that will be used by ServerTransports created using this context. The path is used to store the memory mapped files required for shared memory communication. More... | |
int | getLockWait () |
Get the current wait time for yielding a spin lock. Advanced option for SHM transports only. More... | |
longlong | getSpinCount () |
Gets the current active spin count. Advanced option for SHM transports only. More... | |
int | getTimeout () |
The time in ms that the SHM Transport will wait for information before timing out a connection More... | |
virtual bool | supportsAsync () |
This ServerTransportContext does not currently support Async which means that an exception will be thrown if you try to create an AsynchronousServerTransport using the TransportFactory.bind variant which takes callback objects. More... | |
~ServerSHMTransportContext () | |
Class destructor More... | |
Constructed using the ServerSHMTransportContext.Builder. All information must be set on the Builder so that when this object is built, it is validated. It is used to create Transport objects using TransportFactory.connect. Communication on the transport is transmitted using Shared Memory.
com::softwareag::umtransport::ServerSHMTransportContext::~ServerSHMTransportContext | ( | ) |
Class destructor
int com::softwareag::umtransport::ServerSHMTransportContext::getBufferSize | ( | ) |
Get the buffer size in bytes that will be used by ServerTransports created using this ServerTransportContext
std::string com::softwareag::umtransport::ServerSHMTransportContext::getFilePath | ( | ) |
Get the path that will be used by ServerTransports created using this context. The path is used to store the memory mapped files required for shared memory communication.
int com::softwareag::umtransport::ServerSHMTransportContext::getLockWait | ( | ) |
Get the current wait time for yielding a spin lock. Advanced option for SHM transports only.
longlong com::softwareag::umtransport::ServerSHMTransportContext::getSpinCount | ( | ) |
Gets the current active spin count. Advanced option for SHM transports only.
int com::softwareag::umtransport::ServerSHMTransportContext::getTimeout | ( | ) |
The time in ms that the SHM Transport will wait for information before timing out a connection
|
virtual |
This ServerTransportContext does not currently support Async which means that an exception will be thrown if you try to create an AsynchronousServerTransport using the TransportFactory.bind variant which takes callback objects.
Implements com::softwareag::umtransport::TransportContext.