public class MemProvider extends TransportProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCATOR_KIND_MEM |
| Constructor and Description |
|---|
MemProvider(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
Locator |
createLocator(URI uri,
int domainId,
int participantId,
boolean isDiscovery)
Create a Locator with given parameters.
|
Receiver |
getReceiver(Locator locator,
BlockingQueue<byte[]> queue)
Gets a Receiver from this TransportProvider.
|
Transmitter |
getTransmitter(Locator locator)
Gets a Transmitter.
|
close, getConfiguration, getProviderForKind, getProviderForScheme, getTransportProviders, registerTransportProviderpublic static final int LOCATOR_KIND_MEM
public MemProvider(Configuration config)
public Receiver getReceiver(Locator locator, BlockingQueue<byte[]> queue) throws IOException
TransportProvidergetReceiver in class TransportProviderlocator - Locator of the receiver to create.queue - a BlockingQueue, that should be populated with byte[] received by the Receiver.IOException - on IOExceptionpublic Transmitter getTransmitter(Locator locator) throws IOException
TransportProvidergetTransmitter in class TransportProviderlocator - Locator usedIOException - on IOExceptionpublic Locator createLocator(URI uri, int domainId, int participantId, boolean isDiscovery)
TransportProvidercreateLocator in class TransportProvideruri - UridomainId - Domain IDparticipantId - Participant IDisDiscovery - true or falsePortNumberParametersCopyright © 2016. All rights reserved.