-
Notifications
You must be signed in to change notification settings - Fork 4
Unix Domain Sockets
spinach supports Unix Domain Sockets for connecting to Disque.
Connecting to Disque using DisqueURI
DisqueURI disqueUri = DisqueURI.Builder
.disqueSocket("/tmp/disque")
.withPassword("authentication")
.build();
DisqueClient client = new DisqueClient(disqueUri);
Connecting to Disque using String DisqueURI
DisqueURI disqueUri = DisqueURI.create("disque-socket:///tmp/disque");
DisqueClient client = new DisqueClient(disqueUri);
Unix Domain Sockets are inter-process communication channels on POSIX compliant systems. They allow to exchange data between processes on the same host operating system. When using Disque, which is usually a network service, Unix Domain Sockets are usable only if connecting locally to a single instance.
Unix Domain Socket connections are currently limited to Linux x86_64 systems with a minimum netty version of 4.0.26.Final. You can, however, port the native library to your system. The netty guys would appreciate. You can check here whether there is a new platform binary available.
This wiki and the README document contains a lot of information, please take your time and read these instructions carefully.
If you run into any trouble, you may start with getting started.
We provide detailed changes for each spinach release.
Be sure to read the CONTRIBUTING guidelines before reporting a new lettuce issue or open a pull request.
If you have any questions about the lettuce usage or want to share some information with the community, please go to one of the following places:
More resources:
- Javadoc
- Build status: Travis CI
- All versions: Maven Central
- Snapshots: Sonatype OSS Repository
Intro
Getting started
Advanced usage
- QueueListener API
- SocketAddress Supplier API
- Client options
- SSL Connections
- Unix Domain Sockets
- Connection Events
- Command Interfaces
- Stateful Connections
Integration and Extension
- Codecs
- CDI Support (future)
- Spring Support (future)
Internals