![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.jrtps.transport.MemLocator Maven / Gradle / Ivy
package net.sf.jrtps.transport;
import java.net.URI;
import java.nio.ByteBuffer;
import net.sf.jrtps.types.Locator;
/**
* Locator for memory based transport
*
* @author mcr70
*/
class MemLocator extends Locator {
MemLocator(URI uri) {
super(MemProvider.LOCATOR_KIND_MEM, uri.getPort(), ByteBuffer.wrap(new byte[16]).putInt(uri.toString().hashCode()).array());
}
MemLocator(URI uri, int port) {
super(MemProvider.LOCATOR_KIND_MEM, port, ByteBuffer.wrap(new byte[16]).putInt(uri.toString().hashCode()).array());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy