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, registerTransportProvider
public static final int LOCATOR_KIND_MEM
public MemProvider(Configuration config)
public Receiver getReceiver(Locator locator, BlockingQueue<byte[]> queue) throws IOException
TransportProvider
getReceiver
in class TransportProvider
locator
- 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
TransportProvider
getTransmitter
in class TransportProvider
locator
- Locator usedIOException
- on IOExceptionpublic Locator createLocator(URI uri, int domainId, int participantId, boolean isDiscovery)
TransportProvider
createLocator
in class TransportProvider
uri
- UridomainId
- Domain IDparticipantId
- Participant IDisDiscovery
- true or falsePortNumberParameters
Copyright © 2016. All rights reserved.