Giriş
Şu satırı dahil ederiz
import com.hazelcast.config.SocketInterceptorConfig;
setImplementation metodu
Şöyle yaparız
SocketInterceptorConfig socketInterceptorConfig = new SocketInterceptorConfig(); MySocketInterceptor mySocketInterceptor = ... socketInterceptorConfig.setImplementation(mySocketInterceptor) .setEnabled(true); Config config = ...; config.getNetworkConfig().setSocketInterceptorConfig(socketInterceptorConfig);
Hiç yorum yok:
Yorum Gönder