
io.lettuce.core.resource.UnavailableResources Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.resource;
import java.net.SocketAddress;
import java.util.concurrent.ThreadFactory;
import io.netty.channel.Channel;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.DatagramChannel;
import io.netty.util.concurrent.EventExecutorGroup;
/**
* Unavailable {@link EventLoopResources}.
*
* @author Mark Paluch
*/
enum UnavailableResources implements EventLoopResources {
INSTANCE;
@Override
public boolean matches(Class extends EventExecutorGroup> type) {
return false;
}
@Override
public Class extends EventLoopGroup> eventLoopGroupClass() {
return null;
}
@Override
public EventLoopGroup newEventLoopGroup(int nThreads, ThreadFactory threadFactory) {
return null;
}
@Override
public Class extends Channel> socketChannelClass() {
return null;
}
@Override
public Class extends Channel> domainSocketChannelClass() {
return null;
}
@Override
public Class extends DatagramChannel> datagramChannelClass() {
return null;
}
@Override
public SocketAddress newSocketAddress(String socketPath) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy