public class ThriftServerModule extends Object implements com.google.inject.Module
| Constructor and Description |
|---|
ThriftServerModule() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.inject.binder.ScopedBindingBuilder |
bindFrameCodecFactory(com.google.inject.Binder binder,
String key,
Class<? extends com.facebook.nifty.codec.ThriftFrameCodecFactory> frameCodecFactoryClass) |
static void |
bindFrameCodecFactory(com.google.inject.Binder binder,
String key,
com.facebook.nifty.codec.ThriftFrameCodecFactory frameCodecFactory) |
static com.google.inject.binder.ScopedBindingBuilder |
bindProtocolFactory(com.google.inject.Binder binder,
String key,
Class<? extends com.facebook.nifty.duplex.TDuplexProtocolFactory> protocolFactoryClass) |
static void |
bindProtocolFactory(com.google.inject.Binder binder,
String key,
com.facebook.nifty.duplex.TDuplexProtocolFactory protocolFactory) |
static com.google.inject.binder.ScopedBindingBuilder |
bindWorkerExecutor(com.google.inject.Binder binder,
String key,
Class<? extends ExecutorService> executorServiceClass) |
static void |
bindWorkerExecutor(com.google.inject.Binder binder,
String key,
ExecutorService executorService) |
static com.google.inject.binder.ScopedBindingBuilder |
bindWorkerExecutor(com.google.inject.Binder binder,
String key,
com.google.inject.Provider<? extends ExecutorService> executorServiceProvider) |
static com.google.inject.binder.ScopedBindingBuilder |
bindWorkerExecutorProvider(com.google.inject.Binder binder,
String key,
Class<? extends javax.inject.Provider<? extends ExecutorService>> executorServiceProvider) |
void |
configure(com.google.inject.Binder binder) |
org.jboss.netty.util.Timer |
getThriftServerTimer() |
public void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Modulepublic static com.google.inject.binder.ScopedBindingBuilder bindFrameCodecFactory(com.google.inject.Binder binder,
String key,
Class<? extends com.facebook.nifty.codec.ThriftFrameCodecFactory> frameCodecFactoryClass)
public static void bindFrameCodecFactory(com.google.inject.Binder binder,
String key,
com.facebook.nifty.codec.ThriftFrameCodecFactory frameCodecFactory)
public static com.google.inject.binder.ScopedBindingBuilder bindProtocolFactory(com.google.inject.Binder binder,
String key,
Class<? extends com.facebook.nifty.duplex.TDuplexProtocolFactory> protocolFactoryClass)
public static void bindProtocolFactory(com.google.inject.Binder binder,
String key,
com.facebook.nifty.duplex.TDuplexProtocolFactory protocolFactory)
public static com.google.inject.binder.ScopedBindingBuilder bindWorkerExecutor(com.google.inject.Binder binder,
String key,
Class<? extends ExecutorService> executorServiceClass)
public static com.google.inject.binder.ScopedBindingBuilder bindWorkerExecutor(com.google.inject.Binder binder,
String key,
com.google.inject.Provider<? extends ExecutorService> executorServiceProvider)
public static com.google.inject.binder.ScopedBindingBuilder bindWorkerExecutorProvider(com.google.inject.Binder binder,
String key,
Class<? extends javax.inject.Provider<? extends ExecutorService>> executorServiceProvider)
public static void bindWorkerExecutor(com.google.inject.Binder binder,
String key,
ExecutorService executorService)
@Provides public org.jboss.netty.util.Timer getThriftServerTimer()
Copyright © 2012–2015 Facebook, Inc.. All rights reserved.