Package com.facebook.swift.service

Examples of com.facebook.swift.service.ThriftEventHandler


                        binder.bind(PumaReadServer.class).in(Scopes.SINGLETON);
                        // export puma service implementation
                        thriftServerBinder(binder).exportThriftService(PumaReadServer.class);

                        // create an instance event handler
                        thriftServerBinder(binder).addEventHandler(new ThriftEventHandler() {
                            @Override
                            public Object getContext(String methodName, RequestContext requestContext)
                            {
                                eventHandlerContexts.add(new Object());
                                return null;
View Full Code Here


                        binder.bind(PumaReadServer.class).in(Scopes.SINGLETON);
                        // export puma service implementation
                        thriftServerBinder(binder).exportThriftService(PumaReadServer.class);

                        // create an instance event handler
                        thriftServerBinder(binder).addEventHandler(new ThriftEventHandler() {
                            @Override
                            public Object getContext(String methodName, RequestContext requestContext)
                            {
                                eventHandlerContexts.add(new Object());
                                return null;
View Full Code Here

  private final ThriftServer server;

  public TClientProxyProtocolServer(ClientProxyCommons commons, ClientProxyService proxyService) {
    this.proxyService = proxyService;
    ThriftCodecManager codecManager = new ThriftCodecManager();
    ThriftEventHandler eventHandler = new ThriftEventHandler();
    ThriftServiceProcessor processor = new ThriftServiceProcessor(codecManager, Arrays.asList(
        eventHandler), this);
    server = new ThriftServer(processor, getServerConfig(commons.conf)).start();
  }
View Full Code Here

TOP

Related Classes of com.facebook.swift.service.ThriftEventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.